Expand|Select|Wrap|Line Numbers
- import random #not sure about this
- while True:
- guess = raw_input("Start or Exit?")
- if guess.lower() == 'exit':
- break
- if guess.lower() == 'start':
- a = raw_input("Digits?")
- random() == (1-9)
- print random()
- else:
- print 'Invalid entry'
This is the error i get:
Expand|Select|Wrap|Line Numbers
- Traceback (most recent call last):
- File "C:\Program Files\Python25\diggen.py", line 35, in <module>
- random() == (1-9)
- TypeError: 'module' object is not callable