--Originally published at Hector Martinez Alcantara
#This is a comment in python 3 print('Program of a comment') #here can be a comment too ''' this is a multi line comment yes, here too and another line of comment final line of comment '''
A comment is an annotation about everything you want it to be, this code won’t affect the program at all, its only to be seen in the code, not in the result of it.
The result of the code above will be the next
Program of a comment
Like you can see at the top, a comment can be a single line, a line after a code, and a multi-line comment. To do a single line or a line after a code you have to type a hash ‘#’, after the hash in the line, everything will be a comment. To do a multi-line comment you tipe three single or double quotes like ”’ or “”” and then everything will be a comment, until you type another time triple quotes.
Credits to Comentarios en python – Linea de código
#Python3 #LearningANewLanguage #tc101