Tuesday, February 14, 2012

Python Programming for Beginers

Python is a general-purpose, high-level programming language. It's design is emphasized by code readability. Python has a very clear syntax with a large and comprehensive standard library.

Python multiple programming paradigms object-oriented and functional programming styles. It has a dynamic type system and automatic memory management (dynamic languages).
 
Python is often used as a scripting language, and also used in non-scripting contexts. Using third-party tools, Python code can be packaged into standalone executable programs. Python interpreters are available for many operating systems.



Day 1 Download Python , Installing, Basic Mathwww.python.org under GNU GPL. It was first

Python is FOSS (Free and Open Source Software) available from

Day 2
Variables and ProgramsVariables are containers in memory used by programs to keep run time data, edit them and strore new value. They can be accessed with names assigned to them. Variables have different types numeric, strings and logical are the basic data types.
The program is a rows of programming instructions to the computer to store data, recall data, calculate, perform operations and test certain conditions etc. It can be re used when saved in hard disk and re-loaded to memory to run its task.
Day 3
Strings and their Uses
Day 4
  • Python Programming Tutorial - Raw Input

Day 5Conditions help you compare data to help branching of the programming flow. They make you switch between different instruction paths based on condition.

  • Python Programming Tutorial - else and elif 
    • Python Programming Tutorial -  If Statement

    Day 6
    Comparing numbers, strings and or conditions. Different comparison operators let you compare numbers and conditions during run time to switch to different conditions and options to run different code.

    Day 7Nested Statements and Looping
    You can run code inside another code block to execute different instruction lines. Each nested code are is a code block.
    • Python Programming Tutorial - Nesting Statements
    Day 8LoopingPython lets you run a code block repeated until a certain condition is met. For ...Next and Do .... Loop repetitions can be used in python.

    Day 9Lists and List Functions Python Programming Tutorial - Sequences and Lists Python
    Programming Tutorial - List Slicing

    Lists are like arrays which keeps multiple data items in a single variable. Each data item is referenced by its element id. Consider a list as a container of containers with each container can hold more containers. This is a very strong data structure in python compared to other programming languages. Slicing is getting a desired set of elements from a list. Lists have list processing Functions.

    Day 10 Methods Python Programming Tutorial - Introduction to Methods

    Day 11 Python Programming Tutorial - Sort and Tuples
    Tuples are simple lists. But not editable during run time.

    Day 12 Python Programming Tutorial - Dictionaries
    Dictionaries are lists where element id is a keyword or alphanumeric identifier.
    Day 13
    Files Operations , data Reading and Writing

    Day 14

    Day 15 Functions can have default set of variables called parameters that can be used to pass variable data. Parameters can make functions to act on different Data sets and return results.

    Python Programming Tutorial - Default Parameters

    Day 16 Parameters can have different types and you can pass tuples , lists and dictionaries as paramerters. Python Programming Tutorial - Parameter Types

    Day 17OOP uses objects with properties , and events and methods. OOP helps you create objects and store data as properties. Objects responds to events executing their methods.
    Python Programming Tutorial - Object Oriented Program


    Day 18
    Classes as objects and they can be referenced as Self inside objects.


    Python Programming Tutorial - Classes and Self

    Python Programming Tutorial - Subclasses Superclasses

    Day 19
    Sub classes are created from Classes. Super classes are parents of sub classes. Sub classes created from Super classes can have common as well as different properties, events and methods which help them behave differently.


    Day 20
    In OOP you can override variables in sub classless

    Python Programming Tutorial - Overwrite Variable on Sub

    Day 21Classes can have multiple parents.

    Python Programming Tutorial - Multiple Parent Classes


    Day 22
    Creating Classes and Initializing their properties with data.
    Python Programming Tutorial - Constructors


    Modules are separate programs that can be used in multiple programs as different code units. Much effiecient way than using functions. Help programs to be modular and efficeient. Modules make programming easy and sharable by multiple programmers to provide specific functionality in a program.

    Day 24Python Programming Tutorial - Reload Modules
    Python Programming Tutorial - Getting Module InfoPython Programming Tutorial - Building Functionsfunctions help us develop smaller programs by repeated using a code block as a procedure that can be called as one instruction. Then the code block runs as a re-usable unit of code. Python Programming Tutorial - For and While Loops Data Inputs are two different types in Python. You can input data as numbers or raw. If you enter numeric data as raw you need to convert type to numeric before using in calculations. String  are input as raw. Strings help us keep alphanumeric data as a sequence of characters with varying length.

  • Python Programming Tutorial - More Methods

  • Python Programming Tutorial - Strings n Stuff

  • Python Programming Tutorial - String Methods 


  • Python Programming Tutorial - Infinite Loops and Break


  • Python Programming Tutorial - And and Or


  • developed by Guido van Rossum of Netherlands as a successor to the ABC programming languageas. Python is a object oriented programming language. Python runs on all platforms including mobiles. Python is an interpreter language and also can be used as compiled. Handing numbers and math is important in programming.  Numbers have different types integer, long, double and float etc for different accuracy needs in calculations.

    1 comment: