How to print something and stay on the same line in Python, because print ("xtz....") will print and move onto the next line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to print something and stay on the same line in Python, because print ("xtz....") will print and move onto the next line

21st May 2020, 6:29 AM
Shubham Pawar
3 Answers
+ 6
print("something", end="")
21st May 2020, 6:37 AM
Kevin ★
+ 2
print ("xtz...", end="")
21st May 2020, 7:33 AM
Infinity
Infinity - avatar
+ 1
Thanks
21st May 2020, 6:40 AM
Shubham Pawar