Comments

  • In Python, we use the hash (#) symbol to start writing a comment.
    #This is a long comment

  • Multi line comment
    #This is a long comment
    #and it will extends
    #to multiple lines

  • Use triple quotes, either ''' or """. After and before ''' all lines will be commented.
    '''
    This is a sample code
    to write a
    python program
    '''

No comments:

Post a Comment