User Program Communication

Commenting in Python

Commenting is used to write text within the code that is ignored by the compiler.

#single line comment

   multiline comment (actually a string)


Can be used for documentation, code descriptons, resource inclusion, readability, debugging, and any other note that the programmer would like to include.

#the code below outputs "I think I am cool"

print ("I think I am cool")

The code below outputs the string:
'Because I am!'

print ("Because I am!")

Add to Slack

< User Input   |   Read from Text File >

© 2019 SyntaxDB. All Rights Reserved.