Difference between revisions of "Control Flow, if statements etc.."
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
=If Statemts= | =If Statemts= | ||
if | name = "b" | ||
if name == 'robert': | |||
elif | print(name) | ||
elif name == 'john': | |||
else: | print(name) | ||
else: | |||
print('wrong name') |
Revision as of 20:06, 6 January 2019
If Statemts
name = "b" if name == 'robert': print(name) elif name == 'john': print(name) else: print('wrong name')