Home > OS >  Algebra math expression translated to python function with 2 inputs and a rounded answer
Algebra math expression translated to python function with 2 inputs and a rounded answer

Time:05-11

Learning math to python conversion. Having trouble translating this math expression to a python function with two inputs (x, y). Help would be appreciated. I will have to catch up on my order of calculations its seems. Also some resources where I can learn more about this myself would be great. Thanks :)

math expression

The input variables x and y are single values If a division by zero occurs, raise a ValueError. Output should be rounded to 2 decimal places. You can calculate

  • Related