Calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Calculator

In Line 5 (input = (“add: “) It says “ OEFError or something like that.... WHYYY https://code.sololearn.com/ciYXL1GIq19h/?ref=app

30th Jun 2018, 2:04 AM
Alessandro Galvan
Alessandro Galvan - avatar
2 Answers
+ 3
Playground programs run remotely. All input must be entered prior to the server runs your program. Put this into prompt: add 2.3 3.2 quit
30th Jun 2018, 2:40 AM
John Wells
John Wells - avatar
+ 1
Your programme is right,if user input is wrong then error occurred.you need to use exception handling in your programme.
30th Jun 2018, 2:37 AM
Maninder $ingh
Maninder $ingh - avatar