Spaces | Sololearn: Learn to code for FREE!

-1

Spaces

My output for the initials project came out right except with spaces. This is in python. The exercise here, 27.3. fname = input() lname = input() dot = "." print (fname[0],dot,lname[0],dot) J . R . How would I get rid of them? Thanks EDIT: Thanks Lisa the + marks worked

11/17/2021 8:32:36 PM

Leslie LaCroix

1 Answer

New Answer

+3

edit: You could use the sep-parameter of print or concatenate the strings with +