Hi, i recently began looking at python, and therefore my code is very basic, however i am looking at making a (very basic) game, just to test myself on coding, so far i have the code:
---
This code is repeated ten times, and for each answer i want a definitive value, such as answering Q1 would deposit say, 3 points (I haven't decided yet) in a 'bank' of sorts. Then when all the questions are finished the amount of points would determine a player for the player to use, e.g less then 30 wold assign value x, less then 50 would assign value y, and over 50 would assign value z.
Is there anyway this code could be used? Or is this too advanced,
Thank You
---
def menu(): print("Question 1 of 10, \n 1. Start Game \n 2. Cheats") choice = input() if choice == "1": time.sleep(0.7) print("Q1") if choice == "2": time.sleep(0.7) print("Q2") if choice == "3": time.sleep(0.7) print("Q3") menu()---
This code is repeated ten times, and for each answer i want a definitive value, such as answering Q1 would deposit say, 3 points (I haven't decided yet) in a 'bank' of sorts. Then when all the questions are finished the amount of points would determine a player for the player to use, e.g less then 30 wold assign value x, less then 50 would assign value y, and over 50 would assign value z.
Is there anyway this code could be used? Or is this too advanced,
Thank You
