COMPUTER PROGRAMMING USING PYTHON for Polytechnic Students

COMPUTER PROGRAMMING USING PYTHON for Polytechnic Students DETAILED CONTENTS 1. Introduction • Brief History of Python • Python Versions • Installing Python • Environment Variables • Executing Python from the Command Line • IDLE • Editing Python Files • Python Documentation • Getting Help • Dynamic Types • Python Reserved Words • Naming Conventions 2. Basic Python Syntax  Basic Syntax  Comments  String Values  String Methods  The format Method  String Operators  Numeric Data Types  Conversion Functions  Simple Output  Simple Input  The % Method  The print Function Hello World Program in Python Program to add two numbers in Python Program to calculate area of a circle Program to convert Farenheit Tempreture into celcius in Python Comments in Python Indentation in Python Membership Operators in Python 3. Language Components • Indenting Requirements • The if Statement • Relational and Logical Operators • Bit Wise Operators • The while Loop • break and continue • The for Loop If statement in Python Video Links Loops In python Arithmetic Operators in Python Relational Operators in Python Logical Operators in Python Assignment Operators in Python 4. Collections • Introduction • Lists • Tuples • Sets • Dictionaries • Sorting Dictionaries • Copying Collections • Summary Lists in Python Lists in Python Tuples in Python Sets in Python Dictionaries in Python Python Programming Examples 5. Functions • Introduction • Defining Your Own Functions • Parameters • Function Documentation • Keyword and Optional Parameters • Passing Collections to a Function • Variable Number of Arguments • Scope • Functions - "First Class Citizens" • Passing Functions to a Function • map • filter • Mapping Functions in a Dictionary • Lambda • Inner Functions • Closures Mathematical Functions in Python Functions in Python Part one Functions in Python Part two Functions in Python Part three Functions in Python Part four Functions in Python Part five Functions in Python in One Video 6. Modules • Modules • Standard Modules - sys • Standard Modules - math • Standard Modules - time • The dir Function Modules in Python Part one Modules in Python Part one 7. Exceptions • Errors • Runtime Errors • The Exception Model • Exception Hierarchy • Handling Multiple Exceptions • Raise • assert Exceptions in Python Part one Exceptions in Python Part Two 8. Input and Output • Introduction • Data Streams • Creating Your Own Data Streams • Access Modes • Writing Data to a File • Reading Data From a File • Additional File Methods • Using Pipes as Data Streams • Handling IO Exceptions Data Files in Python 9. Classes in Python • Classes in Python • Principles of Object Orientation • Creating Classes • Instance Methods • File Organization • Special Methods • Class Variables • Inheritance • Polymorphism 10. Regular Expressions • Introduction • Simple Character Matches • Special Characters • Character Classes • Quantifiers • The Dot Character • Greedy Matches • Grouping • Matching at Beginning or End • Match Objects • Substituting • Splitting a String • Compiling Regular Expressions • Flags Regular Expressions in Python

Comments