Python Output / Print
1. What is Output in Python?
Output means showing result on the screen.
In Python, we use the print() function to show output.
Example
print("Hello Python")
Output:
Hello Python
2. Basic print() Statement
The print() function prints text or values.
Print Text
print("Welcome to Python")
Print Number
print(10)
print(25.5)
Print Variable
name = "Amit"
print(name)
3. Printing Multiple Values
You can print more than one value using commas.
Example
name = "Ravi"
age = 20
print(name, age)
Output:
Ravi 20
Python automatically adds space.
4. Printing Text with Variables
Example
name = "Suman"
print("Hello", name)
Output:
Hello Suman
Using + (Plus)
age = 25
print("Age is " + str(age))
👉 We use str() because text and number cannot join directly.
5. Using sep (Separator)
sep controls the space between items.
Example
print("2026", "01", "17", sep="-")
Output:
2026-01-17
6. Using end (Line Ending)
By default, print() goes to a new line.
Default Behavior
print("Hello")
print("World")
Output:
Hello
World
Change Line Ending
print("Hello", end=" ")
print("World")
Output:
Hello World
7. Printing New Line Manually
Use \n for a new line.
Example
print("Hello\nPython")
Output:
Hello
Python
8. Printing Quotes Inside Text
Example
print("Python is \"easy\"")
Output:
Python is "easy"
9. Printing Calculations
You can print results of math operations.
Example
a = 10
b = 5
print(a + b)
print(a * b)
10. Common Beginner Mistakes
❌ Missing Quotes
print(Hello)
✔ Correct:
print("Hello")
❌ Mixing Text and Number
age = 20
print("Age is " + age)
✔ Correct:
print("Age is", age)
or
print("Age is " + str(age))
11. Simple Practice Examples
Example 1: Print Personal Info
name = "Anita"
age = 22
city = "Kolkata"
print("Name:", name)
print("Age:", age)
print("City:", city)
Example 2: Print Table of 2
print("2 x 1 =", 2 * 1)
print("2 x 2 =", 2 * 2)
print("2 x 3 =", 2 * 3)
Example 3: Print Pattern
print("*")
print("**")
print("***")
12. Summary (Python Output)
✔ print() shows output
✔ Can print text, numbers, variables
✔ Use comma to print many values
✔ sep changes separator
✔ end controls new line
📘 Perfect for Beginner eBook
This chapter is ideal for:
-
Python beginner books
-
School & college students
-
Self-learners
If you want next, I can write:
-
Python Input (input())
-
Variables & Data Types
-
if–else (easy)
-
Practice questions with answers
-
Bangla + English version
Just tell me 😊
