how to cast a value to a float in python code example Example 1: python cast to float float('1.234') Example 2: how to convert int in python score = 89 score = str(score)