1
1
Fork 0
PythonLearning/Idk tbh/I have no clue
EntropicDecay 232cc60d19 Added notes to it
Co-authored-by: seaswimmerthefsh@gmail.com <seaswimmerthefsh@gmail.com>
2024-05-06 19:02:57 -05:00

7 lines
No EOL
323 B
Text

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