So i'm trying to work with floats as elements in Python lists but I keep getting this error. I tried making each value a string and then converting it to a float when calling the array to print but that doesn't seem to work either
P1 = [45.100000, ‐65.400000]
print(P1[0])
SyntaxError: invalid character in identifier
Attempt #2
P1 = ["45.100000", "‐65.400000"]
print(float(P1[1]))
ValueError: could not convert string to float: '‐65.400000'
I have a feeling the issues have to do with the negative value in front of the 2nd elements (@ index 1)