1
1
Fork 0

Merge branch 'master' of https://www.coastalcommits.com/Seaswimmer/PythonLearning
All checks were successful
Lint Code / Ruff (push) Successful in 7s
Lint Code / MyPy (push) Successful in 9s
Lint Code / Pylint (push) Successful in 8s

This commit is contained in:
EntropicDecay 2024-05-23 22:29:51 -05:00
commit 380ff808e6

View file

@ -1,7 +0,0 @@
Nested conditional
if x > 10:
if y > 10:
result = "Both greater"
else: result = "x is greater"
else: result = "x is not greater" # Equivalent single conditional if x > 10 and y > 10: result = "Both greater" elif x > 10: result = "x is greater" else: result = "x is not greater"
function