How to test multiple variables against a value?
x = 0
y = 1
z = 3
if 0 or 1 or 2 or 3 == x:
print("This will not work")
if x == 0 or x == 1 or x == 2 or x == 3:
print("This will work")
How to test multiple variables against a value?
x = 0
y = 1
z = 3
if 0 or 1 or 2 or 3 == x:
print("This will not work")
if x == 0 or x == 1 or x == 2 or x == 3:
print("This will work")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us