In video number 10 of the Coding in Python series, we take a look at various forms of comments, and some guidelines regarding style.
Commands Used in this Video
#!/usr/bin/python3 # This is a comment. print("This is NOT a comment.")
#!/usr/bin/python3 myvar = 3 # This is a variable print(myvar)
#!/usr/bin/python3 # This is # a # multi-line # comment
""" This program is intended to do something really neat. This is version 1.0. This program may be useful, some day. """ print("This is a string.")
Commenting out a String
#!/usr/bin/python3 print("This program will fail.") #my var1 = 3 myvar2 = 2 myvar1 = 5 print(myvar1) print(myvar2)