I need to take in input like the following:
Enter two floating point values: 54.99, 32.3
In one line, I want to take in both values and save them as a floating point number but I have been unable to. So far I have the following:
val1, val2 = input("Enter two floating point values: ").split(",")
In that same line, I want to cast them to floating point numbers. How can that be done?
I do not want to do this:
val1, val2 = input("Enter two floating point values: ").split(",")
val1 = float(val1)
val2 = float(val2)