How do I write the following in a single if statement:
if x != 5:
if y < 4:
statement
asked Jul 24, 2011 at 19:42
alwbtc
29.8k63 gold badges142 silver badges197 bronze badges
-
8First you learn boolean logic.user780363– user7803632011年07月24日 19:45:37 +00:00Commented Jul 24, 2011 at 19:45
-
I know it but my mind is so busy i couldn't find the solution to this simple question. sorry.alwbtc– alwbtc2011年07月24日 19:51:35 +00:00Commented Jul 24, 2011 at 19:51
1 Answer 1
if x != 5 and y < 4:
statement
answered Jul 24, 2011 at 19:44
g.d.d.c
48.3k12 gold badges105 silver badges116 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-py