+ 3

Comments in Python

How do I add Comments to my Python code?

8th Sep 2020, 10:53 AM
Victor Wahome
Victor Wahome - avatar
6 Respostas
+ 6
If you write a comment in a line with a code, you must write a comment, leaving 2 spaces before the # sign and 1 space before the # sign print("Hello World") # printing If you write a comment on a new line, you must write a comment, leaving 1 space kn in the # sign # single line comment """ This is a comment written in more than just one line """ # like!!!
8th Sep 2020, 3:37 PM
Nematillo Ochilov 🇺🇿
Nematillo Ochilov 🇺🇿 - avatar
+ 4
# single line comment """ use delimiter for multiple line Comment """
9th Sep 2020, 8:52 AM
Išhwäŕÿā.P 👑
Išhwäŕÿā.P 👑 - avatar
+ 3
by putting '#' in front of the line
8th Sep 2020, 4:13 PM
Karan
Karan - avatar
+ 3
using #.
8th Sep 2020, 8:07 PM
AlienX
AlienX - avatar