+ 3

Exercise on counting 100-anniversary year

Hello guys! I was trying to complete an exercise on displaying the message which addresses the user by name and displays the year in which he/she turns 100 years old. I made a program on my laptop and everything works fine via IDLE, the output looks nice, however when I try to run the code on the playground, the output is not so 'well-organized' (I do not know how to describe it better). Though it still works. Could someone explain the reason for this? The code itself is here: https://code.sololearn.com/c2DN824Iogek/#py In case someone is interested, the exercise was taken from here: https://www.practicepython.org/exercises/

16th May 2018, 5:29 PM
Eugene Samozdran
Eugene Samozdran - avatar
1 Answer
+ 2
the code on sl runs on sl server, not on your machine. therefore the input data you enter in your client app/browser, will be sent to the server through http requests. once the data is received the code will be run server side and the output will be sent back to the client. that's why you see the requests for input without answers and the output of the code alltogether.
16th May 2018, 5:49 PM
seamiki
seamiki - avatar