Re: number of loops

2018-03-17 Thread Michael F. Stemper
On 2018-03-15 08:28, michealmanc...@gmail.com wrote: I would like to have this offer 6 guesses, but instead it gives one guess and prints the if statement/output 6 timesany ideas where I went wrong? It sounds as if you'd like to have it making the offer within the loop rather than before t

Re: number of loops

2018-03-15 Thread Dan Stromberg
On Thu, Mar 15, 2018 at 8:25 AM, Bob Gailer wrote: > On Mar 15, 2018 9:30 AM, wrote: >> >> I would like to have this offer 6 guesses, but instead it gives one guess > and prints the if statement/output 6 timesany ideas where I went wrong? > > I suggest you conduct a walk-through. That means p

Re: number of loops

2018-03-15 Thread Bob Gailer
On Mar 15, 2018 9:30 AM, wrote: > > I would like to have this offer 6 guesses, but instead it gives one guess and prints the if statement/output 6 timesany ideas where I went wrong? I suggest you conduct a walk-through. That means pointing using a pencil or a mouse pointer at each statement a

number of loops

2018-03-15 Thread michealmancini
I would like to have this offer 6 guesses, but instead it gives one guess and prints the if statement/output 6 timesany ideas where I went wrong? import random number_of_guesses = 0 print ('Hello! what is your name?') my_name=input() print (my_name + " " + 'sounds like the name of my next

Re: vary number of loops

2008-04-16 Thread nullgraph
TED] > > Cc: [EMAIL PROTECTED] > > Subject: Re: vary number of loops > > > > If n=3, I want to have 3 sets of elements and mix them up using 3 > for > > > loops. > > > You might be ineterested in this thread: > > >http://mail.python.org/pipermai

Re: vary number of loops

2008-04-16 Thread Mensanator
On Apr 16, 8:31 am, [EMAIL PROTECTED] wrote: > Hi everyone, > > I'm new to Python and the notion of lambda, and I'm trying to write a > function that would have a varying number of nested for loops > depending on parameter n. This just smells like a job for lambda for > me, but I can't figure out h

RE: vary number of loops

2008-04-16 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Tim Chase > Sent: Wednesday, April 16, 2008 9:53 AM > To: [EMAIL PROTECTED] > Cc: python-list@python.org > Subject: Re: vary number of loops > > > > > If n=

Re: vary number of loops

2008-04-16 Thread colas . francis
On 16 avr, 15:31, [EMAIL PROTECTED] wrote: > Hi everyone, > > I'm new to Python and the notion of lambda, and I'm trying to write a > function that would have a varying number of nested for loops > depending on parameter n. This just smells like a job for lambda for > me, but I can't figure out how

Re: vary number of loops

2008-04-16 Thread Tim Chase
> I'm new to Python and the notion of lambda, and I'm trying to write a > function that would have a varying number of nested for loops > depending on parameter n. This just smells like a job for lambda for > me, but I can't figure out how to do it. Any hint? I'm not sure lambda is the tool to use

Re: vary number of loops

2008-04-16 Thread Marc 'BlackJack' Rintsch
On Wed, 16 Apr 2008 06:31:04 -0700, nullgraph wrote: > I'm new to Python and the notion of lambda, and I'm trying to write a > function that would have a varying number of nested for loops > depending on parameter n. This just smells like a job for lambda for > me, but I can't figure out how to do

vary number of loops

2008-04-16 Thread nullgraph
Hi everyone, I'm new to Python and the notion of lambda, and I'm trying to write a function that would have a varying number of nested for loops depending on parameter n. This just smells like a job for lambda for me, but I can't figure out how to do it. Any hint? For example, for n=2, I want the