By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,533 Members | 1,334 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,533 IT Pros & Developers. It's quick & easy.

python

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a

"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.