This line of Python (2.2): x = float([0]) gives the error: TypeError: float() needs a string argument But since "float(0)" is OK, a better error message might be: TypeError: the argument of float() must be a string or a number