1 2 3 4 5 6 7 8 9 10 11
import math math.trunc('x') """ TRACEBACK: Traceback (most recent call last): File "math__trunc_str_error.py", line 3, in <module> math.trunc('x') ~~~~~~~~~~~~~~~ TypeError: type str doesn't define __trunc__ method """