Writing your first Python program (Hello World!).
print("Hello World!")
output
Hello World!- The " " (quotes) are used to tell the command that you're putting text in there (any text you want)
- A bunch of text (or whatever you put in quotes) is called a string.
print("Well we")
print("just use more lines")
print("of code")
output
Well we
just use more lines
of code
print("""Anything that starts
with three quotes, and ends
in three quotes can span
many lines and even contain " symbols
within it without freaking anything out!""")
Output
with three quotes, and ends
in three quotes can span
many lines and even contain " symbols
within it without freaking anything out!
No comments:
Post a Comment