From 96f9b643f4fbdb363621e6ccbd71e5ef46ae039d Mon Sep 17 00:00:00 2001 From: Haaris <89451392+haaris272k@users.noreply.github.com> Date: Sat, 14 Jan 2023 21:42:41 +0530 Subject: [PATCH 1/3] added: Python Comments --- languages/python.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/languages/python.md b/languages/python.md index 1eaf23e..615b916 100644 --- a/languages/python.md +++ b/languages/python.md @@ -125,6 +125,23 @@ | \|= | bitwise or and store| | , | separator as in ( y=x,z=++x )| +
+ +## Comments + +- Comments are very helpful to explain a Python code. + +- They are used to make the code more readable. + +- They never get executed. + +- Comments start with # in Python + + #This is a comment ----> This is a comment + print("Welcome!") + +
+ ### Basic Data Structures ### List From 087d5d45a6ffe20f682bcb007a7374c8eae8a85e Mon Sep 17 00:00:00 2001 From: Haaris <89451392+haaris272k@users.noreply.github.com> Date: Sat, 14 Jan 2023 21:48:23 +0530 Subject: [PATCH 2/3] Update python.md --- languages/python.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/languages/python.md b/languages/python.md index 615b916..00f7569 100644 --- a/languages/python.md +++ b/languages/python.md @@ -137,9 +137,13 @@ - Comments start with # in Python - #This is a comment ----> This is a comment - print("Welcome!") + ```python + + #This is a comment + print("Welcome!") + + ```
### Basic Data Structures From 96173173459eb6421f8ddddca331b8cfc09feef1 Mon Sep 17 00:00:00 2001 From: Haaris <89451392+haaris272k@users.noreply.github.com> Date: Sat, 14 Jan 2023 21:49:42 +0530 Subject: [PATCH 3/3] added: Python Comments --- languages/python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/python.md b/languages/python.md index 00f7569..c0b09df 100644 --- a/languages/python.md +++ b/languages/python.md @@ -135,7 +135,7 @@ - They never get executed. -- Comments start with # in Python +- Comments start with # in Python. ```python