python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jess Martin

    python

    i need help.
    im just learning to program and
    every time i try to do a command more than
    a line long it wont work

    _______________ _______________ _______________ _______________ _____
    Get less junk mail with ninemsn Premium. Click here



  • Ben Finney

    #2
    Re: python

    On Thu, 22 Jan 2004 14:17:20 +1030, Jess Martin wrote:[color=blue]
    > i need help.[/color]

    <http://www.catb.org/~esr/faqs/smart-questions.html>
    [color=blue]
    > im just learning to program[/color]

    Congratulations ; hopefully you'll have a lot of fun. Python is a great
    language to be your first.
    [color=blue]
    > every time i try to do a command more than a line long it wont work[/color]

    As you'll read in the above URL on "How To Ask Questions The Smart Way",
    you'll need to tell us a litle more about what's going on for someone to
    be able to help you. Please read the document for more guidelines.

    --
    \ "If you go parachuting, and your parachute doesn't open, and |
    `\ you friends are all watching you fall, I think a funny gag |
    _o__) would be to pretend you were swimming." -- Jack Handey |
    Ben Finney <http://bignose.squidly .org/>

    Comment

    • Rene Pijlman

      #3
      Re: python

      Jess Martin:[color=blue]
      >every time i try to do a command more than a line long it wont work[/color]

      You must be doing something wrong then :-)

      Check the documentation:


      --
      René Pijlman

      Comment

      • sdfgsd

        #4
        Re: python


        "Jess Martin" <trickster12199 0@hotmail.com> wrote in message
        news:mailman.62 6.1074743244.12 720.python-list@python.org ...[color=blue]
        > i need help.
        > im just learning to program and
        > every time i try to do a command more than
        > a line long it wont work[/color]

        Assuming you're using windows:

        Take your lines of code and put them into their own file with a .py
        extention (ie MyProgram.py).

        Then go to the command line and into the directory where MyProgram.py
        resides and type "python MyProgram.py". This will run your program
        containing as many lines of code as you like.


        Comment

        Working...