0
list = "\n==== Names and Distances ====\n"
firstName = input ("Enter next person's first name >")
while firstName > "":
distance= float(input("Enter distance thrown: "))
list = list + firstName + "." + str(distance) + "\n"
firstName = input ("Enter next person's first name >")
largest = max([distance])
smallest = min([distance])
print (list)
print ("the longest distance is: " + str(largest))
print (smallest)
當我運行程序時,它給了我相同的最大和最小距離關於如何得到最小值的任何想法?如何讓程序找到最小值