Wednesday, December 6, 2017

Python for Biggeners



Why python?
Python is an easy-to-learn programming language that has some really useful features for a beginning programmer. The code is quite easy to read when compared to other programming languages, and it has an interactive shell into which you can enter your programs and see them run. In addition to its simple language structure and an interactive shell with which to experiment, Python has some features that greatly augment the learning process and allow you to put together simple animations for creating your own games. One is the turtle module, inspired by Turtle graphics (used by the Logo programming language back in the 1960s) and designed for educational use. Another is the Tkinter module, an interface for the Tk GUI toolkit, which provides a simple way to create programs with slightly more advanced graphics and animation.

A Few Words About Language

the Python programming language was named after the Monty  Python’s Flying Circus TV show, not after python the snake.

Saving Your Python Programs
we can save our programs for future use. To save new program, open IDLE and choose File4New Window. An empty window will appear, with *Untitled* in the menu bar. Enter the following code into the new shell window:

print ("Hello  world")

Now, choose File4Save. When prompted for a filename, enter hello.py, and save the file to your desktop. Then choose Run4RunModule. With any luck, your saved program should run, like this:

Upcoming : Calculations & Variables