What is Python?
Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java.
Some of Python's notable features:
- Uses an elegant syntax, making the programs you write easier to read.
- Is an easy-to-use language that makes it simple to get your program working. This makes Python ideal for prototype development and other ad-hoc
programming tasks, without compromising maintainability.
- Comes with a large standard library that supports many common programming tasks such as connecting to web servers, searching text with regular expressions, reading and modifying files.
- Python's interactive mode makes it easy to test short snippets of code. There's also a bundled development environment called IDLE.
- Is easily extended by adding new modules implemented in a compiled language such as C or C++.
- Can also be embedded into an application to provide a programmable interface.
Runs anywhere, including Mac OS X, Windows, Linux, and Unix.
Is free software in two senses. It doesn't cost anything to download or use Python, or to include it in your application. Python can also be freely modified and re-distributed, because while the language is copyrighted it's available under an open source license.
Some programming-language features of Python are:
- A variety of basic data types are available: numbers (floating point, complex, and unlimited-length long integers),
strings (both ASCII and Unicode), lists, and dictionaries.
- Python supports object-oriented programming with classes and multiple inheritance.
- Code can be grouped into modules and packages.
- The language supports raising and catching exceptions, resulting in cleaner error handling.
- Data types are strongly and dynamically typed. Mixing incompatible types (e.g. attempting to add a string and a number)
causes an exception to be raised, so errors are caught sooner.
- Python contains advanced programming features such as
generators and list comprehensions.
- Python's automatic memory management frees you from having to manually allocate and
free memory in your code.
Course Content: Python
1. Python Introduction [6 hours]
- Getting started [1 hour theory/practical]
- Keywords and Identifier [1 hour theory/practical]
- Statements & Comments [1 hour theory/practical]
- Python Data types [1 hour theory/practical]
- Python I/O and Import [1 hour theory/practical]
- Python Operators [1 hour theory/practical]
- Practical
2. Python Flow Control [5 hours]
- Python if...else [1 hour theory/practical]
- Python for Loop [1 hour theory/practical]
- Python while Loop [1 hour theory/practical]
- Python break and continue [1 hour theory/practical]
- Python Pass [1 hour theory/practical]
- Practical
3. Python Functions [6 hours]
- Python Function [1 hour theory/practical]
- Function Argument [1 hour theory/practical]
- Python Recursion [1 hour theory/practical]
- Anonymous Function [1 hour theory/practical]
- Python Modules [1 hour theory/practical]
- Python Package [1 hour theory/practical]
- Practical
4. Python Native Data types [6 hours]
- Python Numbers [1 hour theory/practical]
- Python List [1 hour theory/practical]
- Python Tuple [1 hour theory/practical]
- Python String [1 hour theory/practical]
- Python Set [1 hour theory/practical]
- Python Dictionary [1 hour theory/practical]
- Practical
5. Python Files [5 hours]
- Python File Operation [1 hour theory/practical]
- Python Directory [1 hour theory/practical]
- Python Exception [1 hour theory/practical]
- Exception handling [1 hour theory/practical]
- User-defined Exception [1 hour theory/practical]
- Practical
6. Python Object & Class [5 hours]
- Python Namespace [1 hour theory/practical]
- Python Class [1 hour theory/practical]
- Python Inheritance [1 hour theory/practical]
- Multiple Inheritances [1 hour theory/practical]
- Operator overloading [1 hour theory/practical]
- Practical
7. Advanced Topics [6 hours]
- Python Iterator [1 hour theory/practical]
- Python Generator [1 hour theory/practical]
- Python Closure [1 hour theory/practical]
- Python Decorators [1 hour theory/practical]
- Python Property [1 hour theory/practical]
- Python Examples [1 hour theory/practical]
- Practical
8. Python Programing Example
- Introduction
- Python Program to Print Hello world!
- Python Program to Add Two Numbers.
- Python Program to Find the Square Root.
- Python Program to Calculate the Area of a Triangle.
- Python Program to Solve Quadratic Equation.
- Python Program to Swap Two Variables.
- Python Program to Generate a Random Number.
- Python Program to Convert Kilometers to Miles.
- Python Program to Convert Celsius To Fahrenheit.
- Decision Making loops
- Python program to check if a number is positive, negative or zero.
- Python Program to Check if a Number is Odd or Even.
- Python Program to Check Leap Year.
- Python Program to Find the Largest Among Three Numbers.
- Python Program to Check Prime Number.
- Python Program to Print all Prime Numbers in an Interval.
- Python Program to Find the Factorial of a Number.
- Python Program to Display the multiplication Table.
- Python Program to Print the Fibonacci sequence.
- Python Program to Check Armstrong Number.
- Python Program to Find Armstrong Number in an Interval.
- Python Program to Find the Sum of Natural Numbers.
- Function
- Python Program To Display Powers of 2 Using Anonymous Function.
- Python Program to Find Numbers Divisible by Another Number.
- Python Program to Convert Decimal to Binary, Octal and Hexadecimal.
- Python Program to Find ASCII Value of Character.
- Python Program to Find HCF or GCD.
- Python Program to Find LCM.
- Python Program to Find Factors of Number.
- Python Program to Make a Simple Calculator.
- Python Program to Shuffle Deck of Cards.
- Python Program to Display Calendar.
- Python Program to Display Fibonacci Sequence Using Recursion.
- Python Program to Find Sum of Natural Numbers Using Recursion.
- Native Data type
- Python Program to Add Two Matrices.
- Python Program to Transpose a Matrix.
- Python Program to Multiply Two Matrices.
- Python Program to check whether a String is Palindrome or Not.
- Python Program to Remove Punctuations From a String.
- Python Program to Sort Words in Alphabetic Order.
- Python Program to Illustrate Different Set Operations.
- Python Program to Count the Number of Each Vowel.
- File
- Python Program to Merge Mails.
- Python Program to Find the Size (Resolution) of an Image.
- Python Program to Find Hash of File.
9. Python MySQL Connectivity
- Getting started with MySQL python connector
- Python connecting to MySQL databases
- Python MySQL query
- Python MySQL insert data
- Python MySQL ipdate data
- Python MySQL delete data