Create a program that asks the user to input 5 numbers. The numbers should be stored in a list, after which, your program should determine the lowest number on the list using a loop then it will display the lowest number.
numbers = [int(num) for num in input().split()]
if numbers:
min_num = numbers[0]
for num in numbers:
if num < min_num:
min_num = num
print(f"the lowest number: {min_num}")
Comments
Leave a comment