79534979

Date: 2025-03-25 22:22:48
Score: 0.5
Natty:
Report link

also

print(f"{(3**2 + 5**2)**(1/3) = }")

output:

(3**2 + 5**2)**(1/3) = 3.239611801277483

doubling Jerrybibo's comment that generally eval is evil! (and thanks for mentioning about not eval()'ing an input) if you need to reuse the string of b_equation and / or the result b, then eval() seems legit

b_equation = "(3**2 + 5**2)**(1/3)"
b = eval(b_equation)
print(f"{b_equation} = {b}")

# use b_equation and / or b for stuff
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: the-citto