Write a Python program to get the smallest number from a list
def func(lst):
largest = lst[0]
for item in lst:
if item <= largest:
largest = item
return largest
print(func([10, 2, 5, 6, 8, 10]))
About Author
I am a Web Developer, Love to write code and explain in brief. I Worked on several projects and completed in no time.
View all posts by Sunil Shaw