You can use replace
for this:
for index, item in enumerate(my_list):
my_list[index] = item.replace('[', '').replace(']', '')
2
solved need regular expression to remove brackets [closed]
You can use replace
for this:
for index, item in enumerate(my_list):
my_list[index] = item.replace('[', '').replace(']', '')
2
solved need regular expression to remove brackets [closed]