Your Ads Here

Your Ads Here

Breaking

Wednesday, 7 June 2017

Comments and Multi LIne Comments in Python

Look at the code below what do you think it will do, Drop your response in the comment box below.
  1.  #This is a python code that prints my name
  2.  print("my name is Lawal Afeez")
  3. #the above code will print our "My name is Lawal Afeez", 



  4. if the code is written correctly you should get something similar with the above it print out only my name and skip out line 1 and 3 why?
  5. line 1 and 3 are what we call comment in Python
  6. we use it give the readers of our code the idea of what we are trying to do.
  7. you can also add multi line comment by doing like the other screenshot shows

No comments:

Post a Comment

Adbox