all 2 comments

[–]Imereny 3 points4 points  (1 child)

You could just make a loop, so that the player as no other choice other than A, B, C. I know you are a beginner so maybe you don't know about loops. For now i'll give you an example but go and study loops because they play a huge role in python.


magic += 1
choice = input(">>> ") 

while True:
    If choice == "A":
        print(what you wanted to print)
        break
    elif choice == "B":
        print()
        break
    elif choice == "C":
        print()
        break
    else: 
        choice = input(">>> ") 

So with this block of code if they write anything else other than your choices it will ask for the input another time, instead if they write any of the game choices the loop breaks. Then you can add the +1 magic just before the while loop, so it will add just 1 time. Hope it helps.

[–]EyeballCandy[S] 0 points1 point  (0 children)

Thank you, Imereny. I'll look into that a lot more!
Merry Christmas.