[Tutor] I'm stumped.

Nathan Pinno falcon3166 at hotmail.com
Thu Jul 28 02:40:42 CEST 2005


It works. The program will be found on my webpage at it's new address 
http://falcon3166.tripod.com in the Downloads page.
----- Original Message ----- 
From: "Nathan Pinno" <falcon3166 at hotmail.com>
To: "Alan G" <alan.gauld at freenet.co.uk>; <tutor at python.org>
Sent: Wednesday, July 27, 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" <alan.gauld at freenet.co.uk>
> To: "Nathan Pinno" <falcon3166 at hotmail.com>; <tutor at python.org>
> Sent: Wednesday, July 27, 2005 6:06 PM
> Subject: Re: [Tutor] I'm stumped.
>
>
>> Try the split method:
>>
>>>>> '1,2,3,4'.split(',')
>> ['1', '2', '3', '4']
>>>>>
>>
>> Alan G
>>
>> ----- Original Message ----- 
>> From: "Nathan Pinno" <falcon3166 at hotmail.com>
>> To: <tutor at 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 at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 


More information about the Tutor mailing list