Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

end python print with space

print('G','F', sep='', end='')
print('G')
#
 provides new line after printing the year
print('09','12','2016', sep='-', end='
')
 
print('prtk','agarwal', sep='', end='@')
print('geeksforgeeks')


Output:
GFG
09-12-2016
prtkagarwal@geeksforgeeks
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #print #space
ADD COMMENT
Topic
Name
4+3 =