I wanna make a simple calculator with python,but idk which type I have give to (+Ć—Ć·=/) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 1
Another way - you can use eval(): #for example https://code.sololearn.com/c9pv9GTWfuqw/?ref=app
29th Aug 2022, 2:57 PM
AjaraGuju
AjaraGuju - avatar
+ 1
Try using the string type (str()).
29th Aug 2022, 2:53 PM
AjaraGuju
AjaraGuju - avatar
+ 1
Good luck:)
29th Aug 2022, 3:06 PM
AjaraGuju
AjaraGuju - avatar
+ 1
Thanks for helping me šŸ™šŸ»
31st Aug 2022, 6:37 PM
Amirmahdi
Amirmahdi - avatar