Merge branch 'master' of https://www.coastalcommits.com/Seaswimmer/PythonLearning
This commit is contained in:
commit
380ff808e6
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…
Reference in a new issue