473,738 Members | 5,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where to go from here? newbee

Just downloaded python for the fun of it.
What do I run to begin coding with?
Version 2.3.3

When I run the "command line" thing, I get a dos window.
Now what?

The built in tutor explains some basics about programming but zilch on where
to begin.
BTW, you have 357 days left to do your christmas shopping.

Jul 18 '05 #1
8 1508
On Wed, 31 Dec 2003 23:22:43 -0600, in article
<news:bt******* **@enews1.newsg uy.com>, Richard wrote:
Just downloaded python for the fun of it.
What do I run to begin coding with?
Version 2.3.3
Yes, unless you have some reason to use an older release.
When I run the "command line" thing, I get a dos window.
Now what?


Type some commands and see how the interpreter works.

Go to http://www.cs.unm.edu/~ej and click on these links.

Python Hacking I (Just do it!)
Python Hacking II (types, functions, exceptions)
Python Hacking III

Type the commands and see what happens.

Go to http://www.python.org/ and find some more advanced tutorials.
Jul 18 '05 #2
If you are sure you're up to it, here's a good place to start...
http://www.ibiblio.org/obp/thinkCSpy/

Wil
my 2¢
"When everything seems to be going well, you have obviously overlooked
something."
Richard wrote:
Just downloaded python for the fun of it.
What do I run to begin coding with?
Version 2.3.3

When I run the "command line" thing, I get a dos window.
Now what?

The built in tutor explains some basics about programming but zilch on where
to begin.
BTW, you have 357 days left to do your christmas shopping.

Jul 18 '05 #3
Wil Schultz wrote:
If you are sure you're up to it, here's a good place to start...
http://www.ibiblio.org/obp/thinkCSpy/
All nice and good for somebody with no knowledge of what a computer language
is and does.
It's like teaching 1st grade stuff to a college grad.
This tells me nothing on how to get started.
But I understand that the actual coding can be written in a text editor then
compiled?
Wil
my 2¢
"When everything seems to be going well, you have obviously overlooked
something."
Richard wrote:
Just downloaded python for the fun of it.
What do I run to begin coding with?
Version 2.3.3

When I run the "command line" thing, I get a dos window.
Now what?

The built in tutor explains some basics about programming but zilch on
where to begin. BTW, you have 357 days left to do your christmas
shopping.

Jul 18 '05 #4
Jules Dubois wrote:
On Wed, 31 Dec 2003 23:22:43 -0600, in article
<news:bt******* **@enews1.newsg uy.com>, Richard wrote:
Just downloaded python for the fun of it.
What do I run to begin coding with?
Version 2.3.3 Yes, unless you have some reason to use an older release. When I run the "command line" thing, I get a dos window.
Now what?

Type some commands and see how the interpreter works. Go to http://www.cs.unm.edu/~ej and click on these links. Python Hacking I (Just do it!)
Python Hacking II (types, functions, exceptions)
Python Hacking III Type the commands and see what happens. Go to http://www.python.org/ and find some more advanced tutorials.


Ok. Now I'm slowly understanding. I guess you could say that python is
similar to visual basic and c++ in coding.
I have a program written in python which has several "py" files included.
How do I view these for the coding examples?
Jul 18 '05 #5
On Thu, 1 Jan 2004 09:45:00 -0600, rumours say that "Richard"
<an*******@127. 000> might have written:
I have a program written in python which has several "py" files included.
How do I view these for the coding examples?


..py files are the source of python programs --plain text files. Use
your favourite text editor.
--
TZOTZIOY, I speak England very best,
Ils sont fous ces Redmontains! --Harddix
Jul 18 '05 #6
Richard ....

A good way to get started with Python
is to use the interpreter in command-line mode
and experiment with it just by trying different things ....

Anything that works using the interpreter interactively
will also work by coding the commands in a text editor
and saving as a Python source file with the .py extension ....

To execute a saved program, open a DOS window,
and enter ....

python someProg.py

You may have to include your python installation directory
in the Windows path environment variable ....

set path=%path%;x:\ yourPath\Python XXX

A sample interactive session follows ....

You can copy/paste it into a text editor,
whack out the >>> and ... prompt characters,
save it as a .py file, and then execute
for a test ....

--
Cousin Stanley
Human Being
Phoenix, Arizona

# Lines beginning with the pound sign .... # are comments ....
.... #
.... # Create some named objects
.... # and bind these names
.... # to their values
.... root2 = 2**0.5
r = 42.0
x = r / root2
y = x
z = ( x**2 + y**2 )**0.5
# Define a function to print objects .... def fprint( arg ) : .... print ' ' , arg
.... # Create a list of objects .... list_objects = [ r , x , y , z ]

# Print the objects .... for this_object in list_objects : .... fprint( this_object )
....
42.0
29.6984848098
29.6984848098
42.0


Jul 18 '05 #7
Richard,

Being a newbie to Python myself, I can relate.

One way...assuming windows
Click on the python command line thing you evidently found. This gives you a dos box showing the
Python prompt...>>>
Just type Python commands: print "Hello World", for example
Control Z to exit

Another way....
Bring up a 'real' dos box, cd to Python23, or whatever your install named it, and enter python
This again shows the Python prompt >>>

From the dos prompt, you can run a Python script by entering:
python myscript.py
where myscript is a text file with an extension of py, and located in the C:\python23 dir.

If you make a sub-directory myfiles (adviable) under C:\python23, to hold your test scripts, you
need to enter:
python myfiles\myscrip t.py

A third way...
Use a text editor to manage files and directories, and which may be able to launch dos commands.
There are dozens of editors out there, some good, some not so good. I use PFE, and have for years.

Hope this helps a bit.

Norm

On Thu, 1 Jan 2004 09:45:00 -0600, "Richard" <an*******@127. 000> wrote:
Jules Dubois wrote:
On Wed, 31 Dec 2003 23:22:43 -0600, in article
<news:bt******* **@enews1.newsg uy.com>, Richard wrote:

Just downloaded python for the fun of it.
What do I run to begin coding with?
Version 2.3.3
Yes, unless you have some reason to use an older release.

When I run the "command line" thing, I get a dos window.
Now what?

Type some commands and see how the interpreter works.

Go to http://www.cs.unm.edu/~ej and click on these links.

Python Hacking I (Just do it!)
Python Hacking II (types, functions, exceptions)
Python Hacking III

Type the commands and see what happens.

Go to http://www.python.org/ and find some more advanced tutorials.


Ok. Now I'm slowly understanding. I guess you could say that python is
similar to visual basic and c++ in coding.
I have a program written in python which has several "py" files included.
How do I view these for the coding examples?


Jul 18 '05 #8
On Thu, 1 Jan 2004 09:45:00 -0600, in article
<news:bt******* **@enews1.newsg uy.com>, Richard wrote:
Jules Dubois wrote:
> Go to http://www.cs.unm.edu/~ej and click on these links.
> Python Hacking I (Just do it!)
> Python Hacking II (types, functions, exceptions)
> Python Hacking III

> Type the commands and see what happens.


Ok. Now I'm slowly understanding.


In an earlier article, you said "It's like teaching 1st grade stuff to a
college grad." These files were created by a university senior and were
intended as quick-and-dirty "tutorials" , introducing Python to a
senior-level engineering class. All were new to Python.

What I liked about the tutorials was they were instructive but required the
user to determine the correspondence between the input and output. If you
or anyone else wants the tutorials, download them now before the account is
removed. I believe the author graduated in December.
I guess you could say that python is
similar to visual basic and c++ in coding.
It's not much like Visual Basic and is perhaps somewhat similar to C++. As
I learn Smalltalk, what I'm noticing more and more is how similar they are
-- less Smalltalk's integrated environment.

Further, if you're an experienced programmer, I recommend _Python in a
Nutshell_ by Alex Martelli. I've read it cover to cover about a dozen
times now and my conclusion is that it's one of the very best programming
language books I've read (and I've read many in the last 25 years.)

Finally, download the Python documentation from Python.org.
I have a program written in python which has several "py" files included.
How do I view these for the coding examples?


..py files are source code, so load them into your favorite text editor. I
use XEmacs.
Jul 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1928
by: Newbee | last post by:
Hi ! Let's say that this is the folder on the server: /web/firstDir/secondDir/images/image.gif where i have stored my pictures. I have tryed with apsolute and relative paths but i can't display images.... If i right click on the image the whole path is displayed on this way: http://www.test.com/Dir1/Dir2/Dir3/web/firstDir/secondDir/images/image.gif Should i define global variables(?) or how to solve this....
2
1410
by: Newbee Adam | last post by:
is it stored in a directory on hard drive, if so where? -- Adam S
9
341
by: EMW | last post by:
I have created a page in aspx and after a click on a button, a new page should open. How is this possible? I tried it doing it like in vb.NET with opening a new form, but it doesn't work. rg, Eric
8
1379
by: ikarias | last post by:
Maybe not the right place to aske this, but a newbee (me) needs help. i trying to input a number into a textbox, so i can make a series of calculations. in the old days of basic i just jused nrstring=val(input) , but life isnt as easy anymore. I brewed something together as a test, but it failes on me. Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ...
2
1419
by: Mel | last post by:
I have a selection box with 3 values. what i need is to pass 3 urls to a function that has a switch statement and based on the selection index goes on one of the tree urls. Question is how do i pass these three urls to the function i already have ? The list size may change and does not necessary have to remain as 3 thanks for lifting a newbee to greater heights
1
1580
by: doc1355 | last post by:
I have a feeling that this is an easy question. However I'm a newbee and don't have any idea how to do this. I have three tables that stores my users information. Each user has a unique ID that is same in all three tables and is the way that connects the data for the user. Table1 has userid and useremail Table2 has userid and status Table3 has userid and name, email, phone number and ..... user status can be Active, Pending, Expired or...
0
1309
by: Martin Arvidsson, Visual Systems AB | last post by:
Hi! I have a couple of newbee questions. I have a .aspx page with a couple of TextBoxes and a submit button. Now... When i press the submitbutton i want the data in the TextBoxes to be saved in my Sql Table.
2
1727
by: Rene | last post by:
Hello to all! I am a newbee to C++, I did a beginners' course, and now I am stuck with a strange problem. I have written the function that is pasted downwards. The peculiar thing is that when I sent the function the value "0", the .lst file is created properly (the vector I am using/saving is made up of structs of one AnsiString (using BCB) called "naam" and one int called "nummer", I guess You'll get what they mean in English ;-))....
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.