0

How to change ['aa'] into ['a','a'] in python?

Any generalized form without using index. I mean there may be many elements and instead to doing individually, how to do it in all

8th Feb 2022, 7:07 AM
Rahul Kumar
2 Answers
+ 5
[list(element) for element in yourlist]
8th Feb 2022, 8:16 AM
Oma Falk
Oma Falk - avatar
+ 2
Var=['aa'] Var=list(Var[0])
8th Feb 2022, 7:15 AM
Bartek