temptation to guess.
~~
--- On Fri, 2/12/10, David wrote:
From: David
Subject: Re: [Tutor] Coin flip game
To: tutor@python.org
Date: Friday, February 12, 2010, 1:49 AM
Hello Lawrence,
let me try to clarify this (warning: am a begi
"Jones, Lawrence D" wrote
My code is below. But can someone please explain to me
why the following variable has to be placed where it is
Others have explained about variable creation and the fact
you need to be inside the loop to get different results for
each iteration.
Hello Lawrence,
let me try to clarify this (warning: am a beginner myself).
On 12/02/10 06:15, Jones, Lawrence D wrote:
Hi,
I'm new to the list and to Python. I'm reading through Michael Dawson's 'Python
programming: for absolute beginners' and at the end of chapter 3 he's set a
challenge wh
On Fri, Feb 12, 2010 at 7:15 AM, Jones, Lawrence D
wrote:
> My code is below. But can someone please explain to me why the following
> variable has to be placed where it is for the code to work? I thought it
> would need to go nearer the start of the code i.e. just before heads = 0,
> tails = 0 et
Hi,
I'm new to the list and to Python. I'm reading through Michael Dawson's 'Python
programming: for absolute beginners' and at the end of chapter 3 he's set a
challenge where the reader has to create a coin flip game. My code now works,
but only after I randomly switched pieces of the code aro
First off, check your program's indentation.
On Fri, Oct 3, 2008 at 2:04 PM, realNewbie <[EMAIL PROTECTED]> wrote:
>
> This is a class assignment, I am to create a program that flips a coin 100
> times and tells me the number of heads and tails.
> I've been working on it for 2 days now and I am st
Since the variable *count* never increases inside of the loop body, it gets
stuck in the *while* loop.
I recommend taking a hard look at the program, consider what it should be
doing, and then seeing which statements should be in the *while* loop, and
which ones should be outside it.
Tony R.
On
This is a class assignment, I am to create a program that flips a coin 100
times and tells me the number of heads and tails.
I've been working on it for 2 days now and I am stuck. I a trying to run the
program but it is not running.
Can someone please point out my error?
Here is what I have com