Tuesday, October 25, 2011

DOWNLOADING AND INSTALLING, PYTHON 3.4.2

DOWNLOADING AND INSTALLING, PYTHON 3.2.2



REVISED: Thursday, Febuary 5, 2015




In this tutorial, you will learn how to download  and install, Python 3.4.2.

I.  PYTHON INTRODUCTION

Python is free to use; even for commercial products!

Python was created in the early 1990s by Guido van Rossum at the National Research Institute for Mathematics and Computer Science in Netherlands. Python’s elegant syntax and dynamic typing, make it an ideal language for scripting and rapid application development. Python is an interpreted language, which can save you considerable time during program development because no compilation and linking are necessary.  Tkinter, a "graphical user interface" (GUI), is bundled with Python. The name Python was selected from "Monty Python’s Flying Circus" which was a British sketch comedy series created by the comedy group Monty Python and broadcast by the BBC from 1969 to 1974.

II. DOWNLOADING AND INSTALLING PYTHON

To download Python click on the following link:

 PYTHON.

Select the appropriate download for your computer; and during the download, select the option which places a Python icon on your desktop. You will then be able to "double left mouse click" the Python icon as a shortcut when you want to start the Python interpreter shell.

My computer uses Microsoft Windows; therefore, I used the "Windows Installer" for Python 3.4.2 and my Python download was to the following default hard drive path folder:

C:\Python34\

If necessary, check your hard drive and write down and remember the hard drive default path folder your computer used for your Python download.  You will need to know this default information when you are writing and reading Python files.

III.  PYTHON DOWNLOAD AND INSTALLATION VALIDATION

"Double left mouse click" the Python icon on your desktop to start the Python interpreter shell. A Python interpreter shell window will open, as shown below:

Python 3.4.2 (v3.4.2:ab2c023a9432, Oct  6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> 

When you see the above message, you have successfully downloaded and installed Python.

IV.  TKINTER

When the "Python 3.4.2 Shell" window opens, as shown in part III. above,  select "File", then select "New File" and an "Untitled" window opens. Copy and then paste the following into the "Untitled" window:

import tkinter
import turtle

def main():

    root = tkinter.Tk()
    root.title("Hello, World!")
    tkinter.mainloop()

if __name__ == '__main__':
    main()

From the "Untitled" window, do a "File Save As" and save the above Python program, using the file name tkinterValidation.py to the same path which your computer used to download Python 3.4.2. For example, I saved my tkinterValidation.py file to my Python34 folder using the path C:\Python34\tkinterValidation.py

From the "Untitled" window, do a "Run Module F5" and a "blank frame", also called a "blank window", should open. If you have a "blank frame" with the title "Hello, World!" at the top, you have verified Tkinter is working, and you are ready to use the Tkinter GUI.

In this tutorial, you have learned how to download and install, Python 3.4.2.


Elcric Otto Circle







-->




-->




-->














How to Link to My Home Page

It will appear on your website as:

"Link to: ELCRIC OTTO CIRCLE's Home Page"




No comments:

Post a Comment