I have a list:
my_list = [\'\"3\"\', \'\"45\"\',\'\"12\"\',\'\"6\"\']
This list has single and double quotes and the item value. How can I repl
You can use split:
[x.split('"')[1] for x in my_list]
or you can use:
[x.strip('"') for x in my_list]