Ask coding questions

← Back to all posts
load screen help
Brendan23

if you run the repl, there is a space between the and the green highlight in the beginning and the end. how can I remove that space?

Answered by OldWizard209 [earned 5 cycles]
View Answer
Voters
Brendan23
Comments
hotnewtop
OldWizard209

You just need to change 60 to 59 on line 11:

Output:

Brendan23

@OldWizard209 hmmm, ok, great!

Coder100

use sep=''

you see, with each argument, python adds a space in between, so you can remove that:

line 15

Brendan23

@Coder100 there is still a space at the ending, the beginning is fixed though.

Coder100

the symbol naturally has a space, if you look carefully:


@Brendan23

either use a different symbol, or you have to live with it

Brendan23

@Coder100 alright.

LukeWright

instead of

do

Brendan23

@LukeWright there is still a space at the ending, the beginning is fixed though.

LukeWright

then you should change the middle , to a + as well @Brendan23

Brendan23

@LukeWright same thing, the ending still has a space.

LukeWright

Got it. remove the +emt from your code so its just

@Brendan23

Brendan23

@LukeWright alright, that works, how do I get the empty space that was there before?(I could probably figure it out with some time, but I'm lazy.)