forked from gever/bwx-adventure
-
Notifications
You must be signed in to change notification settings - Fork 1
Step by Step Guide to Building a Conditional (if) Statement
sleepinghungry edited this page Mar 7, 2017
·
3 revisions
if
if variable_name
Operators include less than (<), greater than (>), equal to (==), not equal to (!=), less than or equal to (<=), and greater than or equal to (>=)
if variable_name <
if variable_name < 5
if variable_name < 5:
if variable_name < 5:
|
if variable_name < 5:
|
if guess1 < 5:
print("Too low! Enter another guess.")