Space | Sololearn: Learn to code for FREE!

+2

Space

wasn't this supposed to be First string,second string?

2/19/2018 5:52:35 PM

Tiago Silva

13 Answers

New Answer

+7

could you please show an example and tell us which language you use? As far as I know there should be no space between two concatenated strings if at least one string does not have a space at its end.

+7

with print("First string"+","+"last string") you have no space between the strings.

+6

what are you talking about?

+5

@Sebastian Keßler: Your code line misses one right parenthesis at the end.

+4

@Sebastian Keßler: Bassd scho! ;-)

+3

print ('{}, you are {}'.format('Jan', 'right'))

+1

So, there is a typo there

+1

You can also try: print ('{},{}'.format(First String, Last string)

+1

I also heard that this code I posted is 'bad' code in Python 3

+1

the code you posted it's cleaner

+1

what do you mean?

0

when concatenating strings it adds a blank space?

0

I thought my comment was going to appear below the question related. it's was something like "First string"+","+"last string" python