Thursday, January 22, 2026
HomeLanguagesPrint Single and Multiple variable in Python

Print Single and Multiple variable in Python

In Python 3.X, the print statement is written as a print() function. Below is code in Python 3.X that shows the process of printing values in Python.

Example 1: Printing Single value

Python3




# Equivalent codes in Python 3.0
# (Produces same output)
 
# Code 1:
print(1)
 
# Code 2 :
print((1))


Output: 

1 
1

Example 2: Printing multiple values  

Python3




# Code 1:
print(1, 2)
 
# Code 2:
print((1, 2))
 
# Code 3:
# printing on the same line
# for printing on the same line use
# end parameters of the print function
# end takes the values which is printing
# at the end of the output.
print(1, end=" ")
print(2)


Output: 

1 2
(1, 2)
1 2

This article is contributed by Arpit Agarwal. If you like Lazyroar and would like to contribute, you can also write an article and mail your article to review-team@geeksforgeeks.org. See your article appearing on the Lazyroar main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above 

RELATED ARTICLES

Most Popular

Dominic
32475 POSTS0 COMMENTS
Milvus
119 POSTS0 COMMENTS
Nango Kala
6847 POSTS0 COMMENTS
Nicole Veronica
11977 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12064 POSTS0 COMMENTS
Shaida Kate Naidoo
6986 POSTS0 COMMENTS
Ted Musemwa
7220 POSTS0 COMMENTS
Thapelo Manthata
6933 POSTS0 COMMENTS
Umr Jansen
6912 POSTS0 COMMENTS