Python Conditional Statement: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "---- __NOTOC__" to "---- __NOTOC__") |
m (Text replacement - ". ----" to ". ----") |
||
Line 8: | Line 8: | ||
** a [[Python Function Definition Statement]]. | ** a [[Python Function Definition Statement]]. | ||
* <B>See:</B> [[Python Pattern Matching Expression]]. | * <B>See:</B> [[Python Pattern Matching Expression]]. | ||
---- | ---- | ||
---- | ---- |
Latest revision as of 00:03, 23 September 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.