Solution: Using the float() function. In this solution, we use the most common method to convert any data type including a string to float in Python; float().
確定! 回上一頁