Python Conditional Statement: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "---- == Refe" to "---- == Refe") |
m (Text replacement - "---- __NOTOC__" to "---- __NOTOC__") |
||
Line 16: | Line 16: | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
[[Category:Concept]] | [[Category:Concept]] |
Revision as of 17:32, 8 March 2021
A Python Conditional Statement is a Python statement that is a programming conditional statement.
- Example(s):
if debug: print "here"
if a > 5:
print (a,">",5)
elif a <= 3:
print (a,"<=",7)
else:
print ("Neither test was true")
- Counter-Example(s):
- See: Python Pattern Matching Expression.