+ 3

What is wrong with these codes.i'be tried it several times

i'm trying to make a simple calculator https://code.sololearn.com/cmp5RaycCgvB/?ref=app https://code.sololearn.com/cpGxcpFFj4qb/?ref=app

15th Aug 2017, 7:12 PM
Emily
Emily - avatar
4 ответов
+ 6
They lack proper indentation. You have to construct proper logical blocks of code by indenting them by the same number of spaces.
15th Aug 2017, 8:07 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 6
Ok, then: - you should indent (put spaces) your code whenever you want to make a logical block out of it (a for loop, an if statement block or such) - operation variable should be assigned a text string - if statements should have a double equal sign == used - it is for comparing the two sides, while the single equal sign = is for assignments Check it out: https://code.sololearn.com/cNNR0IOxP5gA/?ref=app
15th Aug 2017, 8:15 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
thank you kuba siekierzyński
15th Aug 2017, 8:21 PM
Emily
Emily - avatar
- 1
I still don't get it kuba siekierzyński
15th Aug 2017, 8:11 PM
Emily
Emily - avatar