here is the code:
MyArray = []
question = []
for i in range(3):
question = input("what is 2+2 ")
if question != '2':
print('wrong')
elif question != 'yes':
print('wrong ')
MyArray.append(question)
print(MyArray)
I entered both 2 and yes, but it the program kept saying 'wrong' each time
bear with me since I'm new to programming
Aucun commentaire:
Enregistrer un commentaire