Currently, all the values โโin your list are strings, and you want them to be integers, here are the two easiest ways to do this:
map(int, your_list)
and
[int(value) for value in your_list]
See map () documentation and a list of concepts for more information.
If you want to leave items in your list as strings, but display them without single quotes, you can use the following:
print('[' + ', '.join(your_list) + ']')
source share