Answer to Question #332034 in Python for Bunny

Question #332034

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.

1
Expert's answer
2022-04-21T14:37:06-0400
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}")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS