Re: newbie question; output from simple print statement

2005-08-05 Thread epost2
thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie question; output from simple print statement

2005-08-05 Thread Paul Watson
[EMAIL PROTECTED] wrote: > Can someone explain to me the output of this simple script? I wonder > why ['test1.txt'] is printed before "files in c:\", and also why None > shows up? > > > in file test.py: > > def main(): > > print "files in c:\ :%s" % ListFiles("c:\") > > de

newbie question; output from simple print statement

2005-08-05 Thread epost2
Can someone explain to me the output of this simple script? I wonder why ['test1.txt'] is printed before "files in c:\", and also why None shows up? in file test.py: def main(): print "files in c:\ :%s" % ListFiles("c:\") def ListFiles(path): for root,dirs,files in os.