+ 1
Difference between # and """
What is the difference between between # and """? Which situations would exist in which one is used over the other?
5 Réponses
+ 1
And what is their different syntax?
+ 1
So basically they are both used to write comments but """ is used to block out multiple lines for commenting while # can be used directly after code or just on a new line blocking out only one line for commenting
Usage:
Code
Code
"""
Comments
Comments
"""
Code # comments
Code
# comments
+ 1
Ahh! Ok:p Thank you! I appreciate it
+ 1
No problem!
0
# is use for making a single line comment whiles "" is using for commenting multiple lines.