Thanks for the links pmasiar.
Registered Linux User # 437006 http://sidux.com/ - K Desktop Environment (Debian Sid) MasterShaper - Network traffic under control Currently listening to
Originally Posted by <mawe> Hi! Code: >>> txt = "hello" >>> txt_list = list(txt) >>> txt_list ['h', 'e', 'l', 'l', 'o'] Regards, mawe OR, if you have time to waste (2 seconds? ) and you don't want to use "list" (if you like "for" better) you can try with: Code: txtTest = 'Hello' txtList = [] for i in txtTest: txtList.append(i) print txtList
>>> txt = "hello" >>> txt_list = list(txt) >>> txt_list ['h', 'e', 'l', 'l', 'o']
txtTest = 'Hello' txtList = [] for i in txtTest: txtList.append(i) print txtList
My Website | My Blog
Ubuntu Forums Code of Conduct
Bookmarks