In my code, I am trying to do something like this:
if a=="1" and b=="1":
print("true")
else:
print("false")
Is it possible to simplify that so that I can check a and b in one part?
I've tried some stuff, like
if a and b == "1":
print("true")
else:
print("false")
but it just returns true when b == 1
, and a == anything
Now resolved, but can't take it out of review.