This question already has an answer here:
This program, even when '2' is typed in on line 10, produces a success message. Why?
a=1
while a==1:
b=input('Are you ready?')
if b=='yes':
print('LOADING')
a=2
else:
print('You aren\'t ready.')
print('Go.')
c=input('Mode 1 or Mode 2?')
if c=='1'or'Mode 1':
print('Success!')
else:
print('BEEP BEEP BEEP ERROR')
Aucun commentaire:
Enregistrer un commentaire