From 9313e09c45e8a6166a81a84005c9c6058e0c643d Mon Sep 17 00:00:00 2001 From: Glafs Date: Thu, 15 Nov 2018 10:52:07 +0100 Subject: [PATCH] Fixed style typo in python guidelines (#27857) * Fixed style typo in python guidelines The python marker was below the ''' marker, moved it up in 2 examples. * added output to python guide Added an output from a conditional block and added the python tag to a code block --- guide/english/python/if-elif-else-statements/index.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 >