I am trying to get the first (or any) element of a list to integer form.
my_list = ['10','Sally']
I tried:
my_list = map(int, ['10','Sally'][0])
but the output of it is:
<map object at 0x7f3549b8aa58>
How can I fix my code to change it, so that in a one line expression my_list
is equal to [10,'Sally']
?