Compare commits
2 commits
a6c0dbf000
...
23c0fa2e9f
Author | SHA1 | Date | |
---|---|---|---|
23c0fa2e9f | |||
a4bb423cd6 |
1 changed files with 0 additions and 7 deletions
|
@ -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
|
|
Loading…
Add table
Reference in a new issue