Evaluate the equation and display the result

eval() function

equation = "2 * (3 + 4)"
result = eval(equation)
print("Result:", result)

Leave a Reply

Your email address will not be published. Required fields are marked *