0

For example if it is ["aba"] how do I break it into ["a", "b","a"]?

Jan
  • 40,932
  • 8
  • 45
  • 77

2 Answers2

1

One of many possible ways:

lst = ["aba"]
result = [char for char in lst[0]]
print(result)
Jan
  • 40,932
  • 8
  • 45
  • 77
1

If it is always from 1st element of the list:

splits = [i for i in a[0]]