python

B

Ben Finney

i need help.

said:
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.
 
S

sdfgsd

Jess Martin said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,949
Members
47,500
Latest member
ArianneJsb

Latest Threads

Top