Friday, July 18, 2025

How to print in python ?

The print() function in Python is one of the most commonly used tools for displaying output. Whether you're debugging code, showing results, or interacting with users, print() is your go-to function.


print ("Hello world ")



Printing Multiple Items

You can print multiple items separated by commas:


name = "Anurag"

age = 30

print("Name:", name, "Age:", age)


output :

Name: Anurag Age: 30

No comments:

Post a Comment