In: Computer Science
Python programming:
Instructions:
count = 0 data = "" while True: print("A. quit") print("B. display the number of times the prompt has been displayed") print("C. display whatever is stored") print("Something else to add data to the already stored data") choice = input("Enter your choice: ") count += 1 if choice == "A": break elif choice == "B": print("Number of times count has been displayed is", count) elif choice == "C": print(data) else: data += choice