write a program that input three numbers from the user and display the smallest number on screen
Answers
Answered by
3
def find_chotu(nums):
chotu = nums[0]
for n in nums:
if chotu > n:
chotu = n
return chotu
nums = [int(n) for n in input("enter 3 nums: ").split()]
print(f"smallest num: {find_chotu(nums)}")
Similar questions