I am new to Python and would like to find out if I am able to use multiple of Boolean operators in one expression such as:
taco = int(input("Enter Tacos:\n"))
if taco == (taco == 3) or (taco == 5) or (taco == 7):
print("Just an example.")
else:
print("No taco for you.")
Instead of using two "or" operators in the statement, is it possible to make it smaller? Maybe something like taco == 3 or 5 or 7
?
Please don't laugh at me; I'm really new to this.