No_of_Input = 0 Total = 0 inp = int(input("Please enter a fibonacci number (46368 to stop): ")) if inp == 46368: sys.exit() else: Total += inp No_of_Input += 1 pass while True: inp = int(input("Please enter a fibonacci number (46368 to stop): ")) if inp < 0: inp = 0 elif inp == 46368: break else: Total += inp print(Total) No_of_Input += 1 print("The average is", Total/No_of_Input)