Python - Convert a list of string into a list of integer

Assuming I have a list of strings like the following:

my_list = ['1', '2', '3']

and then I want to make it a list of integer:

my_list = map(int, my_list)

That's it!

Comments