Is tripple single quotes ''' or tripple double quotes " " " are legal for python to comment..?? | SoloLearn: Learn to code for FREE!

0

Is tripple single quotes ''' or tripple double quotes " " " are legal for python to comment..??

Learning python but someone said it is not officially granted to use tripple single quotes to comment in python is it true.??

5/28/2020 12:06:30 PM

Rawhit Singh

2 Answers

New Answer

+3

Rawhit Singh you can use either single or double triple quotes to comment . both are valid """kiibo""" 👈 comment print("""kiibo""") 👈 not comment Main Purpose 👇👇👇 """kiibo Multiline comment is here""" print("""kiibo Docstring is here""") hope you got my points

0

p = """ There are otherways to use Multiline string. This is for your information. """ print(p)