+ 1

Anyone know why I can't use this?

it said simple calculator. I've tried everything and it just says EOF line 8. what's that even mean. I just want to add 2+2 https://code.sololearn.com/c6GR8Jvc5Dmo/?ref=app

27th Aug 2018, 5:19 AM
Kidale Smith
Kidale Smith - avatar
6 Answers
+ 6
Kidale Smith To be completely honest, I would still consider myself to be very inexperienced as a programmer. Just by the fact that you're trying to develop new codes and you're understanding your mistakes shows that you are getting somewhere as a programmer and you are developing your skills. It all just comes down to time, so even though you may feel as if you're getting no where, in a couple months time you will be a substantially better coder and I'm sure that your codes will develop with that. 😉
27th Aug 2018, 6:33 AM
Faisal
Faisal - avatar
+ 6
The problem with what you have so far is that because the code is not fully finished and the only way to break out of the loop is by entering quit, the loop will continuously try to ask for input. This is a problem because the Sololearn code playground only allows for input to be called for once, making the loop return an error as a result of not being able to get data from the user. Even with your code still being unfinished, adding a break statement for each condition will fix this problem as it will only need to call for input once.
27th Aug 2018, 5:32 AM
Faisal
Faisal - avatar
+ 2
Kidale Smith Haha glad to see you're sticking with it! 😅
19th Jun 2019, 1:10 AM
Faisal
Faisal - avatar
+ 2
Thank you Faisal I'm trying 😁
25th Jun 2019, 1:15 AM
Kidale Smith
Kidale Smith - avatar
+ 1
ohhhhh I kinda understand. how do you guys know so much 😭😭 I feel like i'm getting nowhere
27th Aug 2018, 6:21 AM
Kidale Smith
Kidale Smith - avatar
+ 1
Faisal I'm late on replying. Took a break and now I'm back. And yes. Oddly enough. I'm staying to learn how this works. Little by little
19th Jun 2019, 1:08 AM
Kidale Smith
Kidale Smith - avatar