I get an error in the line "if operation == '+':" I understand that indentation. And the error "result = x + y"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I get an error in the line "if operation == '+':" I understand that indentation. And the error "result = x + y"?

https://code.sololearn.com/caNeMtiu26jt/?ref=app

27th Sep 2019, 7:00 PM
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ)
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ) - avatar
5 Answers
+ 1
Thanks you very much!!!
27th Sep 2019, 7:23 PM
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ)
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ) - avatar
+ 1
Thanks for the answer. I have a new problem related to "Number one, Number two", thanks for answering the questions!
27th Sep 2019, 7:30 PM
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ)
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ) - avatar
+ 1
You can see the error yourself, run the code, and see or not?
27th Sep 2019, 7:34 PM
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ)
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ) - avatar
+ 1
everything works for me, thank you very much for your help!
27th Sep 2019, 7:43 PM
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ)
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ) - avatar
0
yes thanks, but I still get an error in the line where, "Number two", "Number One", an error with "Float"
27th Sep 2019, 7:40 PM
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ)
𝐍𝐄𝐋𝐋𝐄𝐒𝐒𝐀𝐍(ɪʟʏᴀ sᴋᴏᴋᴏᴠ) - avatar