Chapter 1: Print Statementยถ
๐ Open Notebookยถ
๐บ Video Tutorialยถ
Start coding with PYTHON in 5 minutes! ๐ (5:13)
๏ฟฝ๐ What Youโll Learnยถ
In this chapter, youโll learn about the print() function, which is your first step in Python programming!
๐ฏ Learning Objectivesยถ
Understand what the
print()function doesLearn how to display text to the console
Write your first Python program
Understand the basics of Python comments
๐ Concept Explanationยถ
The print() Functionยถ
The print() function is one of Pythonโs built-in functions that displays output to the console/terminal. Itโs used to:
Show messages to users
Display results of calculations
Debug your code
Output any information you want to see
Syntaxยถ
print("Your message here")
Key Pointsยถ
Text (strings) must be enclosed in quotes (single
'or double")Each
print()statement creates a new line by defaultYou can print numbers, text, and other data types
๐ก Examplesยถ
Basic Printยถ
print("Hello, World!")
Multiple Linesยถ
print("Line 1")
print("Line 2")
print("Line 3")
โ๏ธ Practice Exercisesยถ
Print your name to the console
Print your favorite hobby
Create a program that prints a short poem (3-4 lines)
Print your age and favorite color on separate lines
๐ Try It Yourselfยถ
Modify main.py to print information about yourself!
๐ Key Takeaways from Videoยถ
Download Python interpreter from python.org
Install an IDE (PyCharm or VS Code) for writing Python code
Add Python to PATH during installation (Windows)
Create a new Python project and file
Lists store multiple items in a single variable
๐ก These points cover the main concepts from the video tutorial to help reinforce your learning.
๐ Next Chapterยถ
Continue to Chapter 2: Variables to learn about storing data!
๐ Commentsยถ
Comments are lines that Python ignores. They help explain your code: