+ 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//
13 Respostas
+ 4
This works on the Playground......
for i in range(5):
print("\0a/", end = "")
+ 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/")`.
+ 3
get
Yes, is just here
+ 2
Harsha S
What output you want?
+ 2
Harsha S
for a in range(5):
print(r"a/")
+ 2
Harsha S
I so sorry.
for a in range(5):
print(r"a/", end="")
+ 2
Harsha S
I don't know why
+ 1
Infinity I don't need space.
It works on pydroid(android) but not on sololearn
+ 1
Harsha S This is strange. Perhaps only Sololearn knows why. Your Pydroid outputs the correct one and that's all I know.
+ 1
â
«Caleb Guerra Ortega»â
Output: a/a/a/a/a/
+ 1
â
«Caleb Guerra Ortega»â
what about end = ""?
+ 1
â
«Caleb Guerra Ortega»â
still it doesn't work
- 1
Infinity Yeah just like you deleted your comment.