diff --git a/guide/english/python/if-elif-else-statements/index.md b/guide/english/python/if-elif-else-statements/index.md index 3b73908c49..322d362312 100644 --- a/guide/english/python/if-elif-else-statements/index.md +++ b/guide/english/python/if-elif-else-statements/index.md @@ -80,6 +80,11 @@ if x % 2 == 0: # this is how you create a comment and now, checking for even. else: print ("The number is not even. So no point checking further.") ``` +Output + +```python +This number is even and is greater than 10 +``` This was just a simple example of a nested if statement. Please feel free to explore more online. While the examples above are simple, you can create complex conditions using boolean comparisons and boolean operators. @@ -90,8 +95,7 @@ While the examples above are simple, you can create complex conditions using = 50 else False @@ -99,7 +103,7 @@ print(is_greater) ``` Output -``` +```python > True >