[Tutor] Problem with chap. 3. 'Craps Roller'

Danny Yoo dyoo at hashcollision.org
Wed Jan 28 00:50:56 CET 2015

On Tue, Jan 27, 2015 at 2:07 PM, joseph dorsten <jfdorsten at gmail.com> wrote:
> When I run the program I get:       NameError:  name 'die1' is not
> defined      However I defined die1 in the program as  die1 =
> random,randint (1, 6)  Thanks for any help,  joe

Hi Joe,

Unfortunately, this is insufficient information.

Read your question again and keep in mind:

1. We're not in your class.

We may not even be on the same country or continent as you.

2. We don't have your book, and we can't see your program.

When you say "the program", you have to imagine a world where there
are a lot of programs out there.

3.  We can't read your mind.

That is, imagine one of your fellow students just sent you your own
question.  What's the first thing you'd ask?

Chances are, the first question you'd ask is: what does your program look like?

More information about the Tutor mailing list