1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Python

Discussion in 'Programming' started by sants1, Sep 27, 2014.

  1. sants1

    sants1 I'm an asshole. That's all.

    Is there really any use for the language? if so, what's it for?
     
  2. Python has a ton of uses. I'm not going to outline every single thing it can do, but I'll just say that a lot of code that the ISS and Google uses is on Python. It can be used for games and scripting, system function and web development, and lots of use for system administrators and network engineers. It's also a really nice language syntactically in the first place
     
  3. ShadowOfDoubt

    ShadowOfDoubt In the grim dark future. There is only SCG.

    Code:
    from datetime import datetime
    now = datetime.now()
    
    print '%s/%s/%s %s:%s:%s' % (now.month, now.day, now.year, now.hour, now.minute, now.second) 
    Can also do it to do this kind of thing! Just something I did the other day while learning.

    Code:
    def clinic():
        print "You've just entered the clinic!"
        print "Do you take the door on the left or the right?"
        answer = raw_input("Type left or right and hit 'Enter'.").lower()
        if answer == "left" or answer == "l":
            print "This is the Verbal Abuse Room, you heap of parrot droppings!"
        elif answer == "right" or answer == "r":
            print "Of course this is the Argument Room, I've told you that already!"
        else:
            print "You didn't pick left or right! Try again."
            clinic()
    
    clinic()
    This is basically a very early stage of what would be a text only game.
     
  4. I don't really care much for Python but most of the stuff I've heard about it is that it's good for making file management systems, so I guess it has good I/O?
     

Previous Readers (Total: 0)