im very new in Coding and i started with Python to understand how to code. Im going to programm a simply quiz, where the User choose which Quiz they want to play. I did it the an input() and yet it does not goto the if - Statement. Code:
import quiz1
import quiz2
import quiz3
import quiz4
quiz = input("Please choose which Quiz you want to play (1-4): ")
print(quiz)
if quiz == 1:
quiz1
#f1 = open(fragebogen1.py)
#print(f1)
elif quiz == 1:
print("hello")
elif quiz == 3:
print("hello")
elif quiz == 4:
print("hello")
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire