Answers for "how to change the type of a values in list from str to object python"

0

how to change the type of a values in list from str to object python

>>> list_a = ['20.3', '35', '10', '6.74', '323']
>>> list_a = map(float, list_a)
>>> list_a[0]*2
40.6
Posted by: Guest on July-20-2020

Code answers related to "how to change the type of a values in list from str to object python"

Python Answers by Framework

Browse Popular Code Answers by Language