+ 1

When and where do we use triple quotes in python?

Python

11th Dec 2019, 5:08 PM
Klover_A
2 odpowiedzi
+ 2
These are used to write multiline comments in python
11th Dec 2019, 5:29 PM
Photogenic Gyaan
Photogenic Gyaan - avatar
+ 3
Triple quotes are used to write multiline comments. e.g """This is a comment This is another comment This is another comment1""" Above lines will be treated as comment because they are enclosed in triple quotes And # is used for single line comment e.g #This is comment
12th Dec 2019, 9:05 AM
Surbhi Dighe
Surbhi Dighe - avatar