Home » Archive by category "Python Tutorial"

Classes in Python

Classes   Introduction One thing that you will get to know about programming, is that programmers like to be lazy. If something has been done before, why should you do it again? That is what functions cover in python. You’ve already had your code do something special. Now...
Continue reading »

Python for Loop Statements

The for Loop Basically, the for loop does something for every value in a list. The way it is set out is a little confusing, but otherwise is very basic. Here is an example of it in code: Code Example 1 – The for Loop # Example ‘for’...
Continue reading »

Tuples, Lists, and Dictionaries in Python

Tuples, Lists, and Dictionaries   Introduction Your brain still hurting from the last lesson? Never worry, this one will require a little less thought. We’re going back to something simple – variables – but a little more in depth. Think about it – variables store one bit of...
Continue reading »

Functions in Python

Functions   Introduction What are functions? Well, in effect, functions are little self-contained programs that perform a specific task, which you can incorporate into your own, larger programs. After you have created a function, you can use it at any time, in any place. This saves you the...
Continue reading »

Conditionals and Loops in Python

Loops, Conditionals   Introduction (Our final lesson before we get into interacting with human input. Can’t wait, can you?) Just imagine you needed a program to do something 20 times. What would you do? You could copy and paste the code 20 times, and have a virtually unreadable...
Continue reading »

Python Programs in a file, and variables

Programs in a file, and variables   Introduction Well, we can make one-liner programs. So What? You want to send programs to other people, so that they can use them, without knowing how to write them. Editing in Notepad Writing programs in python to a file is VERY...
Continue reading »

Introduction to Python

Very simple ‘programs’ OK! We have python installed, now what? Well, we program! And it is that simple (at least for now). Python makes it easy to run single lines of code – one-liner programs. Lets give it a go. Opening IDLE Go to the start menu, find...
Continue reading »

Basic Python Installation

Installing Python   What is python? If you don’t understand this, don’t worry. Just skip it and move on. Python is an interpreted programming language. For those who don’t know, a programming language is what you write down to tell a computer what to do. However, the computer...
Continue reading »

What is Python?

Python For Beginners Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect...
Continue reading »