Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
Cnverting a Liststring into a Listlist...

Hello everyone, first post ever... can someone point me in the right direccion? I need to format the firt list into the same format as the second one. Python

print(incorrentformatlist)
'AsKh', '2sAc', '7hQs',...........

print(correctformatlist)
['As', 'Kh', '2s', 'Ac', '7h', 'Qs',..............]

\#I tried:

for h in incorrect_format_list:

split_lines = h.split(", ")

\#but the print output is this:

'AsKh'
'2sKh'
'7hQs'
... #rather than what i need: ['As', 'Kh', '2s', 'Ac', '7h', 'Qs'..............]

/r/Python
https://redd.it/10fvovh