Cheap VPS & Xen Server


Residential Proxy Network - Hourly & Monthly Packages

Python Comments


Python supports two types of comments:

1) Single lined comment:

In case user wants to specify a single line comment, then comment must start with ?#?

Eg:

  1. # This is single line comment.

2) Multi lined Comment:

Multi lined comment can be given inside triple quotes.

eg:

  1. ”’ This
  2.     Is
  3.     Multipline comment”’

eg:

  1. #single line comment
  2. print “Hello Python”
  3. ”’This is
  4. multiline comment”’

Comments

comments