[Tutor] Memory and functions

2011-12-18 Thread Charles Becker
I have a rather obscure question, and not sure where in the docs to find an answer like this. For functions that return values (ie the list method pop): If you don't assign the returned value to anything does it still end up residing in memory? Just seems like this could be a potential problem

Re: [Tutor] Random order program

2011-11-28 Thread Charles Becker
Dave, Myles, et al, On Nov 27, 2011, at 4:25 PM, Dave Angel wrote: > On 11/27/2011 05:17 PM, myles broomes wrote: >> >> >> >> >> >> >> >> #random order list >> while len(random_word_list) != len(word_list): >> word = random.choice(word_list) >> if word not in random_word_l

Re: [Tutor] Do loop in Python

2011-11-25 Thread Charles Becker
Sue, I'm not familiar with FORTRAN, and since I'm not completely sure what you're trying to accomplish please take this simply as an 'educated guess'. My guess is that you're not getting the curve because Z is only defined to one decimal location (1/10th) precision and probably needs higher p

Re: [Tutor] Question on List Comprehensions

2011-11-21 Thread Charles Becker
Alan, Steve, future readers, After some re-reading and hacking I was able to discover the solution. Since I raised the question here it is : [['{0}'.format(x+1), x+1] for x in range(size)] This will create the list with nested lists for whatever number 'size' is set to. This should be good e