fork download
  1. # your code goes here
  2. x1 ='0.123456789'
  3. x2 ='0.123456589'
  4. x3 ='0.123456689'
  5. x1 = round(x1,6)
  6. x2 = round(float(x2),6)
  7. x3 = round(float(x3),6)
  8. print(x1)
  9. print(x2)
  10. print(x3)
Runtime error #stdin #stdout #stderr 0.12s 23432KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 5, in <module>
TypeError: type str doesn't define __round__ method