+ 3

Help me pls (python)

https://code.sololearn.com/cLTRoUHn6KO8/?ref=app Comment on this post the fixed code thx in advance!

20th Mar 2022, 3:44 PM
Hrithika
Hrithika - avatar
3 Answers
+ 1
ķ•œźµ­ ģ†Œė…€ Are you trying to make a calculator??
20th Mar 2022, 4:46 PM
NEZ
NEZ - avatar
+ 1
I would suggest entering operatori second, or just take the whole input as a string and parse it for the information.
20th Mar 2022, 3:48 PM
William Owens
William Owens - avatar
+ 1
# źø“ ź³ ģ–‘ģ“ė„¼ ģ“ø ķ•„ģš” ģ—†ģ–“, ģ‹œė„ķ•“ė“ā€¦ num1 = input() calc = input() num2 = input() result = eval(num1+calc+num2) print(result) # ķ‰ź°€ģ˜ ģ£¼ģš” źø°ėŠ„ eval()
22nd Mar 2022, 7:20 AM
CodeStory
CodeStory - avatar