0
So I'm trying to write this code which output 'accept' for some specific names the user inputs but it ain't working
x = input('enter your user ID:') if x==john: print('accept') elif x==lara: print('accept') elif x==jonah: print('accept') else: print('incorrect ID')
2 odpowiedzi
+ 6
You forgot the "" at x== "theName"
0
Thanks it worked!
I'm actually new
Where i can get more examples of conditional statements like this?