FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
programmingWithPythonCode/syntax/if_else.py at main · thomasWeise/programmingWithPythonCode · GitHub
thomasWeise
programmingWithPythonCode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
programmingWithPythonCode
/
syntax
/
if_else.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 451 Bytes
Breadcrumbs
programmingWithPythonCode
/
syntax
/
if_else.py
Copy path
File metadata and controls
14 lines (12 loc) · 451 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""The syntax of an "if-else"-statement in Python."""
if
booleanExpression
:
conditional
statement
1
# Only executed if booleanExpression
conditional
statement
2
# evaluates to True.
# ...
else
:
alternative
statement
1
# Only executed if booleanExpression
alternative
statement
2
# evaluates to False.
# ...
normal
statement
1
# Always executed, regardless of the result of
normal
statement
2
# booleanExpression.
# ...
Back
|
FazBrowse Home
|
New Git URL