PYTHON
WHAT IS PYTHON ?
Python is a great language for beginners
- It's easy to learn
- Has an active supportive community
- Offers versatile opportunities in web development, games, data science
HOW TO PRINT IN PYTHON ?
EXAMPLE : print("Hello Replit")
- 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
Multiple Print Statements
Use the triple quote
"""
if you want to write a big chunk of text with gaps or line breaks. Add this code to what you have in main.py
and hit run
.EXAMPLE :
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!""")
Comments
Post a Comment