Hey, I'm new to python so don't judge.
Chris Angelico
rosuav at gmail.com
Tue Jan 3 18:56:42 EST 2017
On Wed, Jan 4, 2017 at 10:49 AM, <cr2001 at hotmail.co.nz> wrote:
> Im doing a new task from my teacher but i can't seem to find what is wrong with this code. Can anyone help?
>
> #mynumber.py
> # this game uses a home made function
> import random
>
> #think of a number
> computer_number = number.randint(1,100)
What's wrong is that you aren't showing us the exception you get on
this line. *Copy and paste* that exception - the whole thing. It's
very helpful.
ChrisA
More information about the Python-list
mailing list