Printing/Commenting: Python Course #1
Have you ever wanted to to learn Python? Well, here is a course you can take to learn or enhance your coding skills.
Printing is a very simple concept. You print by using the statement:
But of course you'll want to write inside the statement.
But before you write, you have to add either a double quote or a single quote after and before what you want to say.
NOTE: You cannot do double quote and single quote, or single quote and double quote.
You can also print True, False and numbers.
Commenting is fairly easy, just add a # (hashtag) before what you want to say.
# This is a comment
Multiline commenting is a bit harder. You have to add either three double quotes or three single quotes. before and after what you want to say:
""" This is a multiline comment. I told you this is a multiline comment! """ or ''' This is also a multiline comment. with single quotes. '''
' you want to print(
" \' ")
" you want to print(
' \" ')
Tricks I use:
for a new line, I do:
which prints a new line:
For a tab, I do:
print(" \t Hello!"):
I advise you to not just read this tutorial, I advise you to practice.
That's all for today!