On Wednesday, 15 January 2020 15:16:45 UTC, ander...@gmail.com  wrote:
> Hey!
> I’m trying to implement a calculator that converts a string; for excample 
> «3+98*4», to a number. Is there a module or command that I can use to 
> automate this? It’s literal hell making it from scratch.
> 
> -Anders (pycharm)

eval(str) should work :)



-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to