I have recently (tried) to install nosetools and all the other modules that are suggested by a book i am following; learnpythontheh ardway. Everything seems to have installed correctly but every time i type "nosetools" into CMD i get "not recognized etc... ".
Does anybody know the PATH variable i need to assign?
Thanks!
User Profile
Collapse
-
What is the PATH i need for nosetools?
-
Python: Can't use 2 files?
Hi, i have been trying to learn python from a book learn python the hard way and i am trying to learn how to use code in two different files simultaneously. I can't get it to work though, this is what i'm doing.
File 1:
Code:import test2 a.test1()
File 2:
These...Code:class test: def test1(self): print "Test" a = test() -
Thanks but it still doesn't go to the break_out function? -
-
Why will this not do anything?
...Code:from random import randint class firstRoom(): def __init__(self): print "Welcome to the start of the game. Good luck finishing it." print "There is a keypad on the door. You have to get all 3 digits correct, or the door will never open again." return 'break_out' def break_out(self): # Until everythin is working only one -
Python word game, functions wont work?
I have been going through the book: learn python the hard way, and i have come to exercise 43, where you build your own 'game'. This is my attempt so far, all the functions are working, except for the death() function? why wont it work?
When i type: python game.py>admin>l eft it should say that i die, but it goes onto the "right" option as well?
here it is:
...Code:from sys import exit
-
-
Why is nothing happening when i run this?
...Code:from sys import exit from random import randint def main_hall(): print "You are on the war ship. You need to get into the elevator to get to the bridge; where the General is." print "The whole destroyer is on alert and nearly every door is locked. There is a keypad on the elevator." print "There is a warning saying you only have 10 attemps, then the system deactivates
No activity results to display
Show More
Leave a comment: