Re: break up a value in a list to a list of individual items

2008-11-09 Thread r3bol
thanks :) and so many different ways! -- http://mail.python.org/mailman/listinfo/python-list

break up a value in a list to a list of individual items

2008-11-09 Thread r3bol
Hi, sorry to post this, but I've had a really hard time finding how to do it. Q. How can I break up a value in a list to a list of individual items (preferably without importing any modules)? Like... ['12345'] (string) to [1, 2, 3, 4, 5] [numbers] Thanks. -- http://mail.python.org/mailman/listinfo

Newbie - Stuck

2006-10-09 Thread r3bol
The perl version of this code works but not the python version. What am I doing wrong? message = "abc" password = "z12" scrambled = message ^ password I also wondered why this errored as well... int(messege) Is it not meant to convert a string to a number? -- http://mail.python.org/mailman/l

Re: Newbie - Stuck

2006-10-08 Thread r3bol
Thanks everyone. I guess I was a little quick to think I could jump straight into Python. I understand the principals of what was said but not the code just yet. I was always under the impression that python was a cleaned up version of perl. I guess this excercise put me straight! I will try and g