could not convert string to float python code example Example: convert string to float python >>> number='1.1' >>> float(number) 1.1