Re: [Tutor] os.sys

2007-10-28 Thread Andrew Nelsen
On 10/28/07, Lawrence Shafer <[EMAIL PROTECTED]> wrote: > > Why doesn't this fill otp with the output of ls?? (I know python has > it's own file tools, I'm just playing around ;) > > import os > cmd="""ls""" > otp=os.system(cmd) > print otp > ___ > Tutor

Re: [Tutor] Where can I find simple python scripts to edit and play around?

2007-09-26 Thread Andrew Nelsen
On 9/26/07, Ulrich Holtzhausen <[EMAIL PROTECTED]> wrote: > > Well I guess the subject/topic here describes it all. I am looking for a > nice collection of SIMPLE python scripts, IE: How to manipulate files, > text, how to create a bot, how to work with socks...making a > server/client, converting

Re: [Tutor] Finding all the letters in a string?

2007-09-17 Thread Andrew Nelsen
Thanks, everyone, for your help. It was a pretty narrow question because it's a pretty specific task, but only because I was guessing there was more than one way of shelling an acorn. My original idea was something a lot like: lst = [] chars = '@*&^$&[EMAIL PROTECTED](&@$*(&[EMAIL PROTECTED](*&*

[Tutor] Finding all the letters in a string?

2007-09-17 Thread Andrew Nelsen
I was wondering, recently, the most expedient way to take a string with [EMAIL PROTECTED]&*] and alpha-numeric characters [ie. "[EMAIL PROTECTED]@*$g@)$&^@&^$F"] and place all of the letters in a string or list. I thought there could be obvious ways: A) Find all the letters, put them in a list, o