How to change a list item from a string to a float in Python3
list=['word','2']
print(type(list[0]))
print(type(list[0]))
I want list[0] to remain a string while list[1] becomes a float.
Sorry If i'm not posting this in the correct format I don't know how.
No comments:
Post a Comment