Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS and Python

Status
Not open for further replies.

jeanpierre

Technical User
Jun 14, 2001
137
CA
Hi,

When I save a file in notepad or wordpad as "hello.py", it end up saving it as "hello.py.txt"

Is there a way to get around this?

Thanks. JP
 
Before you save the file write in the field "File name" the name of your file with the *.py Extension e.g. name.py
Then choose in the Combobox "Save as type" the entry "All files" and press the save button.
Your file has been saved as name.py!
 
>how do you use it?

1) install Python
2) create a program, saved it in a .py file
3) run it ! (type: python myprogram.py)

Sample program:
print "Hello, world !"


If you are under Windows, you just have to download Python from (Direct link to download:
)


You will find lots of information, tutorials, examples, books and links here:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top