470,647 Members | 1,248 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

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
http://ninemsn.com.au/premium/landing.asp
Jul 18 '05 #1
3 2299
On Thu, 22 Jan 2004 14:17:20 +1030, Jess Martin wrote:
i need help.
<http://www.catb.org/~esr/faqs/smart-questions.html>
im just learning to program
Congratulations; hopefully you'll have a lot of fun. Python is a great
language to be your first.
every time i try to do a command more than a line long it wont work


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/>
Jul 18 '05 #2
Jess Martin:
every time i try to do a command more than a line long it wont work


You must be doing something wrong then :-)

Check the documentation:
http://www.python.org/doc/current/re...structure.html

--
Renť Pijlman
Jul 18 '05 #3

"Jess Martin" <tr*************@hotmail.com> wrote in message
news:ma**************************************@pyth on.org...
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


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.
Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.