fork download
  1. from typing import Union
  2.  
  3. NumType = Union[int, float]
  4.  
  5. def some_expression_with_rounding(a: NumType, b: NumType) -> NumType:
  6. result = None
  7. result = (12 * a + 25 * b) / (1 + a**(2**b))
  8. result = round(result, 2)
  9. return result
  10.  
  11.  
  12. if __name__ == "__main__":
  13. print(some_expression_with_rounding(1,1))
Success #stdin #stdout 0.03s 9656KB
stdin
Standard input is empty
stdout
18.5