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
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
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
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
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
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
> -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=
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
> 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
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
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
11 matches
Mail list logo