Output in Python
Output in Python is used to display information on the screen.
The most common way to produce output is using the print() function.
💡 The
print() function can display text, numbers, and variables.
Using print()
print("Hello World")
print(10)
print(5 + 3)
Printing Multiple Values
name = "Khushi"
age = 18
print(name, age)
Formatted Output
name = "Python"
print("I am learning", name)
❌ Forgetting quotes around text causes errors
Practice
- Print your name
- Print the result of 10 + 20