Re: [Tutor] Recursive assignment in nested lists

2012-08-04 Thread Puneeth Chaganti
On Sat, Aug 4, 2012 at 12:28 PM, Alonzo Quijote wrote: > Is there a way to define a function which takes >a list (of lists), >a position specified by a list of integers [i0,i1,...,in], and >a value > and returns the result of setting > list[i0][i1]...[in]=value > > The following fu

Re: [Tutor] Help please!

2012-07-30 Thread Puneeth Chaganti
On Mon, Jul 30, 2012 at 9:35 PM, Victoria Homsy wrote: > Hi! I am a new Python user, and would really appreciate some help. My code > is as follows: > > from sys import argvs > script, mum_mood, dad_mood = argvs > > # my own function > def dad_and_mum_mood(mum_mood, dad_mood): > print "If both mum

Re: [Tutor] Working with lists - why does my script not work?

2012-06-25 Thread Puneeth Chaganti
On Mon, Jun 25, 2012 at 6:51 PM, Developer Ecofunds wrote: > Hello guys, > > I'd like to ask you a little question about a script I did and isn't working > properly. > It is one excercise from googles python classes > > > I'm u

Re: [Tutor] How to interact with users on IRC using Python

2012-04-16 Thread Puneeth Chaganti
On Mon, Apr 16, 2012 at 8:41 PM, Surya K wrote: [snip] > So, what IRC commands should I use and how do I typically implement them? I found this useful -- http://www.irchelp.org/irchelp/rfc/rfc.html ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] write list to columns

2012-04-11 Thread Puneeth Chaganti
On Thu, Apr 12, 2012 at 8:01 AM, questions anon wrote: > I am trying to simply write a list of values to txt file in one column. > I would then like to add another list in a second column. > Somehow they only appear as one long row. > Any feedback will be greatly appreciated. You will need to wri