Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print in the same line

# Python 3 code for printing
# on the same line 
 
print("geeks", end =" ")
print("geeksforgeeks")
 
a=[1,2,3,4,5,6]
 
# using * symbol prints the list
# elements in a single line
print(*a)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #print #line
ADD COMMENT
Topic
Name
5+9 =