Flat 10% & upto 40% off + 10% Cashback + Free additional Courses. Hurry up

Python Comments



It is useful to place a comment in place to indicate what you are doing. It is added into the program for making the program easier to understand and these are not compiled by the compiler or interpreter. It is useful if you want someone else to be able to ever read your code.

There are two ways to declare comment in python which are as follows:

  • Single Line comment
  • Multi Line comment


  • Single Line comment – It is used to apply the comment on a single line. To apply single line comment # is used.


>>>print "hello Intellipaat" # It will print the string hello Intellipaat


  • Multi Line comment – It is used to apply the comment on multiple lines. To apply multi line comment triple quotes are used.


>>>print "hello Intellipaat"

“’It will print the

string hello Intellipaat”’

Learn more about PYTHON TOOLKIT in this insightful blog now!

"0 Responses on Python Comments"

100% Secure Payments. All major credit & debit cards accepted Or Pay by Paypal.

Sales Offer

  • To avail this offer, enroll before 22nd May 2018.
  • This offer cannot be combined with any other offer.
  • This offer is valid on selected courses only.
  • Cashback will be accumulated in Intellipaat e-wallet
  • Please use coupon codes mentioned below to avail the offer

Sign Up or Login to view the Free Python Comments.