Re: [Tutor] I'm stumped.

2005-07-27 Thread Nathan Pinno
2005 6:33 PM Subject: Re: [Tutor] I'm stumped. > Thanks. Now it basically works. Now I just have to improve it. > - Original Message - > From: "Alan G" <[EMAIL PROTECTED]> > To: "Nathan Pinno" <[EMAIL PROTECTED]>; > Sent: Wednesd

Re: [Tutor] I'm stumped.

2005-07-27 Thread Nathan Pinno
Thanks. Now it basically works. Now I just have to improve it. - Original Message - From: "Alan G" <[EMAIL PROTECTED]> To: "Nathan Pinno" <[EMAIL PROTECTED]>; Sent: Wednesday, July 27, 2005 6:06 PM Subject: Re: [Tutor] I'm stumped. > Try t

Re: [Tutor] I'm stumped.

2005-07-27 Thread Alan G
Try the split method: >>> '1,2,3,4'.split(',') ['1', '2', '3', '4'] >>> Alan G - Original Message - From: "Nathan Pinno" <[EMAIL PROTECTED]> To: Sent: Thursday, July 28, 2005 12:17 AM Subje

Re: [Tutor] I'm stumped.

2005-07-27 Thread Danny Yoo
On Wed, 27 Jul 2005, Nathan Pinno wrote: > How do I split the list members up in the following code? Hi Nathan, Try using a string's split() method. For example: ## >>> "hello world this is a test".split() ['hello', 'world', 'this', 'is', 'a', 'test'] >>> "hello world this is a test".spl

[Tutor] I'm stumped.

2005-07-27 Thread Nathan Pinno
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 listaprint listbfor item in lista:   for other in listb:  print item,o