+ 3

What's wrong here?

I am not getting output as "a/a/a/a/a/" for i in range(5): print("a/", end = "") The output is a... //Playground//

13th Oct 2021, 11:46 AM
Harsha S
Harsha S - avatar
13 Respostas
+ 4
This works on the Playground...... for i in range(5): print("\0a/", end = "")
13th Oct 2021, 12:28 PM
Jan
Jan - avatar
+ 3
I see the problem here is with Sololearn playground trying to keep any information about its core parts and source away from an average user (that may be a hacker actually) by replacing any text that is likely to uncover any of the mentioned before with "../Playground/" or something like that. To be honest, I was thinking that it replaces links only until I saw this. Now I know that it replaces any text between the slashes. So, the replacement script they use for this in its simplest form may look like this: `output.replace(/(\/.)+/g, "../Playground/")`.
19th Oct 2021, 1:29 PM
#0009e7 [get]
#0009e7 [get] - avatar
+ 3
get Yes, is just here
19th Oct 2021, 1:31 PM
CGO!
CGO! - avatar
+ 2
Harsha S What output you want?
15th Oct 2021, 12:56 AM
CGO!
CGO! - avatar
+ 2
Harsha S for a in range(5): print(r"a/")
15th Oct 2021, 12:08 PM
CGO!
CGO! - avatar
+ 2
Harsha S I so sorry. for a in range(5): print(r"a/", end="")
15th Oct 2021, 12:11 PM
CGO!
CGO! - avatar
+ 2
Harsha S I don't know why
15th Oct 2021, 1:16 PM
CGO!
CGO! - avatar
+ 1
Infinity I don't need space. It works on pydroid(android) but not on sololearn
13th Oct 2021, 11:56 AM
Harsha S
Harsha S - avatar
+ 1
Harsha S This is strange. Perhaps only Sololearn knows why. Your Pydroid outputs the correct one and that's all I know.
13th Oct 2021, 12:02 PM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar
15th Oct 2021, 2:58 AM
Harsha S
Harsha S - avatar
15th Oct 2021, 12:10 PM
Harsha S
Harsha S - avatar
15th Oct 2021, 12:12 PM
Harsha S
Harsha S - avatar
- 1
Infinity Yeah just like you deleted your comment.
13th Oct 2021, 11:58 AM
Harsha S
Harsha S - avatar