From 46b9a3c70f426d7cf92365f2a0a38be25077c6ee Mon Sep 17 00:00:00 2001 From: TARANPREETKAUR18 <101043541+TARANPREETKAUR18@users.noreply.github.com> Date: Sat, 8 Oct 2022 21:07:11 +0530 Subject: [PATCH 1/2] Adds ''' to comment multiple lines in Python Adds ''' to comment multiple lines in Python --- python.md | 1 + 1 file changed, 1 insertion(+) diff --git a/python.md b/python.md index 3ced0cb..32f8a2e 100644 --- a/python.md +++ b/python.md @@ -14,6 +14,7 @@ print("hello world") ### comments * `#` is used to comment a line in Python +* `'''` are used to comment multiple lines in Python ## Data Types From 3339d856d52808d790ea5149ac1ae3235c30c087 Mon Sep 17 00:00:00 2001 From: TARANPREETKAUR18 <101043541+TARANPREETKAUR18@users.noreply.github.com> Date: Sat, 8 Oct 2022 21:10:05 +0530 Subject: [PATCH 2/2] Add example of comments in Python Add examples of comments in Python using #(for single-line comments) and '''(for comments of multiple lines) --- python.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python.md b/python.md index 32f8a2e..e152be8 100644 --- a/python.md +++ b/python.md @@ -16,6 +16,15 @@ print("hello world") * `#` is used to comment a line in Python * `'''` are used to comment multiple lines in Python +### Example +```py +#Commenting single line in Python +'''Commenting +multiple +lines +in +Python''' +``` ## Data Types |Category|Data Type|