+ 3

I wrote this code to perform basic mathematical operations but it does not work in the best way. Are there suggestions to solve

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

7th Jan 2018, 7:58 PM
Rogaia Ibrahim
Rogaia Ibrahim - avatar
4 ответов
+ 3
use functions maybe? def add(x,y): return x+y def subtract(x,y): return x-y etc...
7th Jan 2018, 8:17 PM
emmey
emmey - avatar
+ 2
I need some support guys
7th Jan 2018, 8:04 PM
Rogaia Ibrahim
Rogaia Ibrahim - avatar
+ 2
https://code.sololearn.com/cLXHMf8gfSnj/?ref=app maybe like that. Probably better ways though.
7th Jan 2018, 8:32 PM
emmey
emmey - avatar
+ 2
thanks emmey I'll try it
8th Jan 2018, 8:02 AM
Rogaia Ibrahim
Rogaia Ibrahim - avatar