Are Python web terminal and Python app terminal different? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

Are Python web terminal and Python app terminal different?

I made pattern of aki in python but when I print space it doesn't work on web terminal but works here. Here is my code. Just enter aki and see the effect on website and here. https://code.sololearn.com/co5ZzR9LUnI4/?ref=app

1st Mar 2021, 5:55 AM
A͢J
A͢J - avatar
5 Answers
+ 4
Yes I think so, as I also had the same experience. Whitespaces are not printed (or ignored) in web version when I try to print pattern like this. But I think it is device dependent since it is working fine on some users (like one of the answerer here in this thread) Here is my past question regarding this similar problem. https://www.sololearn.com/Discuss/2624385/?ref=app
1st Mar 2021, 7:32 AM
noteve
noteve - avatar
+ 4
Eve Same problem is happening with C++ language also.
1st Mar 2021, 7:38 AM
A͢J
A͢J - avatar
+ 4
Eve that's strange if in web some user have 'pre' formatting while others doesn't (spaces collapse)... as in all cases output is done in html ^^ is it related to device/platform?
1st Mar 2021, 8:21 AM
visph
visph - avatar
+ 2
funny that you mentioned this i was wondering the same thing when i posted https://code.sololearn.com/c3a12a8a5a22/?ref=app today lol looks great from my comp inside my IDE but a huge mess in web terminal
2nd Mar 2021, 11:01 PM
Gutz_X_73vEn
Gutz_X_73vEn - avatar
- 3
yassine
2nd Mar 2021, 5:52 PM
Yassine Khazri
Yassine Khazri - avatar