**2.在本练习中,您将创建一个计算用户输入的值集合的平均值的程序。用户将输入0作为前哨值,以表示不会提供进一步的值。如果用户输入的第一个值为0,则程序应显示适当的错误消息。提示:因为0标志着输入的结束,所以它不应该包含在average.in python中,对吗?while True:
x= int(input('enter a first number'
我基本上想知道如何存储用户输入,并将它们从最小到最大排序,以帮助他们找到中值模式或范围。useramtnum = input("How many numbers will you need to enter: ")#asks user to say how many numbers there are
whileamtnum < useramtnum: #Tells program that while the amount of numbers is less