Mar-13-2017, 05:41 PM
I am not entirely sure what do you want, but you might consider to use a dictionary to store your questions/point values - that way you would not need to repeat basically same code ten times.
questions = {"1": "Text of question 1", "2": "Text of question 2", "3": "Text of question 3"} choice = input() time.sleep(0.7) print(questions.get(choice, "Choice must be 1..3"))you can use
questions[choice]
to get the value from a dictionary, but with .get()
you wont get error when your choice is not in the dictionary.