Ask coding questions

← Back to all posts
why is this not working in python?
awesomecds7

when i do something like this in python:
QUESTION_HERE=Input('QUESTION_HERE')
If QUESTION_HERE == 'AWNSER1' or 'AWNSER2' : Print('PRINT_TEXT_HERE') else : Print('INCORRECT_TEXT_HERE')
if i do something that's supposed to be incorrect like 'ICTT' it prints the PRINT_TEXT_HERE why is this not working? was there a update?

Comments
hotnewtop
awesomecds7

@ZetaCommand @VulcanWM Thanks i will try that :]

ZetaCommand

QUESTION_HERE=Input('QUESTION_HERE')
If QUESTION_HERE == 'AWNSER1' or 'AWNSER2' :
print('PRINT_TEXT_HERE')
else :
print('INCORRECT_TEXT_HERE')

awesomecds7

@ZetaCommand it failed

VulcanWM

try doing if QUESTION_HERE == 'AWNSER1' or QUESTION_HERE == 'AWNSER2':

awesomecds7

@VulcanWM yours aint work with else : print('INCORRECT_TEXT_HERE')

awesomecds7

And this is needed for my new rock paper scissors game