+ 1

When i try to run this they Say invalid syntax here: m=float(input('Now please enter the number two:')help plz

print('''Hello This is calculator''') choise=input('''Please chose one of this: \"addition" \"soustraction" \"multiplication" \"division" ==>''') while choise not in["addition","soustraction","multiplication","division"]: print('please choose again') choise=input('''Please chose one of this: \"addition" \"soustraction" \"multiplication" \"division" ==>''') n=float(input('Please enter the first number:') m=float(input('Now please enter the number two:') if choise=="addition": r=n+m print('the result='+r) elif choise=="soustraction": r=n-m print('the result='+r) elif choise=="multiplication": r=n*m print('the result='+r) else: r=n/m print('the result='+r)

28th Jul 2019, 7:20 PM
iren yeger
iren yeger - avatar
8 ответов
+ 6
Some issues found, see comments in file. Also some indentation problems. code should run now. Be aware that all input in code playground has to be done in advance. In total problems are all stuff you know. If you read error messages carefully you can fix it yourself. https://code.sololearn.com/cq456pjzDfOu/?ref=app
28th Jul 2019, 7:44 PM
Lothar
Lothar - avatar
+ 2
Thank you for your answer
28th Jul 2019, 8:18 PM
iren yeger
iren yeger - avatar
+ 1
Lothar ~ swim ~ thank you it work But how many spaces (i think their name is indentation) should i let before wrighting the statement of a loop ?
28th Jul 2019, 8:06 PM
iren yeger
iren yeger - avatar
+ 1
Thank you
28th Jul 2019, 8:09 PM
iren yeger
iren yeger - avatar
+ 1
~ swim ~ what is the easier language for you?
28th Jul 2019, 8:12 PM
iren yeger
iren yeger - avatar