Is a Hashtag or a Gift of God?

--Originally published at Welcome to the Heaven

 

6299980870_656c4e9dde_o

For experts and beginners the use of comments is one of the most useful thing when they’re programing and more when are learning a new language.

The comments in all the language can be called different and need and specific sintaxis if you don’t want to make a mistake when you’re programing, but in the case of Python the only thing that you need to put is “#”.

Comments can exist in two types:

The first when you want to describe a specific line, you put at the final of that.

Example :

>>>   print (“Hello World”) #if you don’t put  ”    at the beginning  and end of the text that you want that the computer print, this can’t  be recognized the syntaxis.

 

And the second when you want to give a little description of the next code that you will use.

Example:

#Remember, all the text that you want the computer print need to be in ”   ”

>> print(“Hello World”)
for a in[“banana”,2,3,5]:
print(a)

 

 

Source: http://www.gavilan.edu/csis/languages/comments.html

Picture: https://www.flickr.com/photos/69288857@N03