Sep-26-2017, 08:14 PM
>>> float('') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: could not convert string to float:you can either use try/except or if you havn't learned that - check the user input before trying to convert to float