Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how will you print space and stay on the same line in python

To print without a new line in Python 3 add an extra argument to your print function telling the program that you don't want your next string to be on a new line. Here's an example: print("Hello there!", end = '') The next print function will be on the same line.
 
PREVIOUS NEXT
Tagged: #print #space #stay #line #python
ADD COMMENT
Topic
Name
4+6 =