+ 1
Need help in python question in description plz help
I need to write a program which takes input 1+1 2+2 - 2*-2 2/-2 directly from user and does arithmetic operation with it
6 Réponses
+ 2
Use
eval(input())
+ 1
hi! at what stage of writing code are you stuck? could you show us your code?
+ 1
eval() evaluates expression on strings.
if user enters "2+2" string eval() will do arithmetic operation on the string.
0
I really don't have any idea.. What does eval do?
0
Can I dm you?
0
Md Sayed Ohh now I know thank you😊😊