User Profile

Collapse

Profile Sidebar

Collapse
Daniel Johnson
Daniel Johnson
Last Activity: Feb 22 '12, 07:29 AM
Joined: Dec 23 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Daniel Johnson
    started a topic What is the PATH i need for nosetools?

    What is the PATH i need for nosetools?

    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!
    See more | Go to post

  • Daniel Johnson
    started a topic Python: Can't use 2 files?

    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:
    Code:
    class test:
        def test1(self):
            print "Test"
    
    a = test()
    These...
    See more | Go to post

  • Daniel Johnson
    replied to Why will this not do anything?
    Thanks but it still doesn't go to the break_out function?
    See more | Go to post

    Leave a comment:


  • Daniel Johnson
    replied to Why will this not do anything?
    So how do i get it to work?
    See more | Go to post

    Leave a comment:


  • Daniel Johnson
    started a topic Why will this not do anything?

    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
    ...
    See more | Go to post

  • Daniel Johnson
    started a topic Python word game, functions wont work?

    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
    ...
    See more | Go to post

  • How do i do that? im not very good at python yet
    See more | Go to post

    Leave a comment:


  • Daniel Johnson
    started a topic Why is nothing happening when i run this?

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...