How to remove printed spaces in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to remove printed spaces in Python?

N = input('What is your name? \n') print() print('My name is', N, '.') print('\n Hi,', N, "!") Been experimentin' a bit in Python... How do I get rid of the printed spaces before the "." and the "!" in the printed outputs? Thanks.

17th May 2017, 7:44 AM
Melt Louw
0 Answers