human
Can you show me a Python program to cast a list of strings into float.
assistant
Here is a Python program to cast a list of strings into float

import math

def string_to_float(string):
    """
    Convert a list of string into float.
    """
    return float(string)

# Enter the string
string = "1.234"

# Calling the function
print((string_to_float(string)))

#Example Output
# 1.234

#Remember to inspect code for bugs.