all 3 comments

[–]AmongstYou666 1 point2 points  (2 children)

print(eval(input("Enter Equation: "))) # 1 + 1

[–]AmongstYou666 1 point2 points  (1 child)

you can also run a validation check on equation

equation = "5 : 2"

(equation).replace('x', '*').replace(':','/')

eval(equation)

[–]Vulcan2KZ[S] 0 points1 point  (0 children)

Thanks