What is the easiest way to convert list with str into list with int in Python? For example, we have to convert [\'1\', \'2\', \'3\']
str
int
[\'1\', \'2\', \'3\']
[int(i) for i in str_list]