Have a problem with only this IDE.
thongth (0)

This program works very well on another site but it keep failing when I tried to run it on this site. (it doesn't print out the result in line 2 in the given picture) Is there any reasons to this?
You can try it yourself if you want to.
Ps. The picture shows how I want the program to be. (And it was on another site)

You are viewing a single comment. View All
Answered by JoshDaBosh (77) [earned 5 cycles]
View Answer
JoshDaBosh (77)

@thongth it's something to do with the end=" " and how repl.it handles it. (I was super confused as well lol)
The "*" in my line is just python "shorthand" for all elements in that list. I've tried using end="\n" and sep=" " in your original code's last line and it works.
Repl.it is funny sometimes :\