Try the split method: >>> '1,2,3,4'.split(',') ['1', '2', '3', '4'] >>>
Alan G ----- Original Message ----- From: "Nathan Pinno" <[EMAIL PROTECTED]> To: <tutor@python.org> Sent: Thursday, July 28, 2005 12:17 AM Subject: [Tutor] I'm stumped. How do I split the list members up in the following code? What am I forgetting? lista = [] listb = [] lista = raw_input("Enter lista, separated by commas: ") listb = raw_input("Enter listb, separated by commas: ") print lista print listb for item in lista: for other in listb: print item,other Thanks in advance, Nathan Pinno _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor