+ 2

I wanna make a simple calculator with python,but idk which type I have give to (+×÷=/)

First = int(input()) # number Second = input() #(+×÷=/) Third= int(input()) #number

28th Aug 2022, 7:23 AM
Amirmahdi
Amirmahdi - avatar
4 Answers
+ 1
Another way - you can use eval(): #for example https://code.sololearn.com/c9pv9GTWfuqw/?ref=app
29th Aug 2022, 2:57 PM
Евгений Молдованов
Евгений Молдованов - avatar
+ 1
Try using the string type (str()).
29th Aug 2022, 2:53 PM
Евгений Молдованов
Евгений Молдованов - avatar
+ 1
Good luck:)
29th Aug 2022, 3:06 PM
Евгений Молдованов
Евгений Молдованов - avatar
+ 1
Thanks for helping me 🙏🏻
31st Aug 2022, 6:37 PM
Amirmahdi
Amirmahdi - avatar