def main(): sum = 0.0 count = 0 num = [] xStr = input("Enter a number (<Enter> to quit) >> ") while xStr != "": x = eval(xStr) num.append(x) sum = sum + x count = count + 1 xStr = input("Enter a number (<Enter> to quit) >> ") num.sort() print("You have entered", count, "number of numbers. These numbers are listed in ascending order:", num)

forgot main()

def main(): sum = 0.0 count = 0 num = [] xStr = input("Enter a number (<Enter> to quit) >> ") while xStr != "": x = eval(xStr) num.append(x) sum = sum + x count = count + 1 xStr = input("Enter a number (<Enter> to quit) >> ") num.sort() print("You have entered", count, "number of numbers. These numbers are listed in ascending order:", num) main()