-
Module-1 1
-
-
Module-2 1
-
-
Module-3 1
-

Python Programming
Python is an interpreted, high-level, and cross-platform programming language created by Guido Rossum in 1989. It has been one of the most popular programming languages for years and has many areas of application from web applications to data science, machine learning, and Deep Learning. Python programming is quite easy to learn and understand because of its natural syntax. It is also a highly productive programming language, which allows the programmer to build complex applications very quickly with minimal lines of codes.
Objective
Python Introduction
- What is Python?
- Why Python?
- Who Uses Python & Where we can use Python?
- Characteristics of Python
- Unique features of Python
- Limitations of Python
- Python Applications
- Different versions of Python
Python Installation
- Python Installation
- PyCharm IDE
- How to Work on PyCharm?
- PyCharm Components
- Write and run the python code on PyCharm.
Language Fundamentals
- Python Variable/Identifiers
- Variable, Variable names and Value
- What is Indentation?
- Python Reserved Words
- Introduction to Python Data Types
- Data Types – int
- Data Types – float
- Data Types – complex
- Data Types – bool
- Data Types – str
- Type Casting – int (), float (), bool (), complex (), str () functions
Python Operators
- Introduction to Python Operators
- Python Arithmetic Operators
- Python Relational Operators
- Python Equality Operators
- Python Logical Operators
- Python Assignment Operator
- Python Ternary Operator
- Operator Precedence
Input and Output Statements
- Read input data from the keyboard
- How to Read Multiple Values from the keyboard
- What is eval () function
- Command Line Arguments
- Printing to the Screen
- Format printing text
Python Flow Control
- Introduction and Indentation
- “if condition” in conditional structures
- if statement (One-Way Decisions)
- if … else statement (Two-way Decisions)
- if … elif … else statement (Multi-way)
- How to use “for loop”
- How to use “While Loop”
- Transfer Statements – break statement
- Transfer Statements – continue statement
- pass statement
- del statement
Python Strings
- Defining a string
- Accessing Values in Strings
- Various String Operators
- Indexing and Slicing with Strings
- Comparison & Mathematical Operators
- String methods
Python Data Structure: List
- Introduction to the List data structure
- Lists are mutable
- List Properties
- Creation a List Object
- Accessing Elements of List By using index and Slice operator
- Traversing Elements of the List
- Important Methods and Functions of List
- Ordering Elements of List
- Nested Lists
- List Comprehension
Python Data Structure: Tuple
- Introduction to Tuple data structure
- Advantages of Tuple over List
- Tuple Properties
- Single Valued Tuple
- Creation of Tuple Object
- Accessing Elements of Tuple By using index and Slice operator
- Packing and Unpacking
- Important Methods and Functions for Tuple
- Reversing and Sorting Elements of Tuple
- Differences between List and Tuple
Python Data Structure: Set
- Introduction to the Set data structure
- Set Properties
- Creation of Set Object
- Important Methods and Functions for Set
Python Data Structure: Dictionary
- Introduction to Dictionary data structure
- Dictionary Properties
- Creation of Dictionary Object
- How to access, add, update, and delete data from a dictionary
- Important Methods and Functions for dictionary
Python Functions
- What is a function?
- What is the need for Functions and its advantages?
- Types of Functions
- How to define and call a function in Python
- Return Statement
- How to return multiple values from a function
- Types of Arguments: Positional Arguments
- Types of Arguments: Keyword Arguments
- Types of Arguments: Default Arguments
- Types of Arguments: Variable-Length Arguments
- Types of Variables: Global and Local
- Anonymous Functions/Lambda Functions
- filter () function
- map () Function
- reduce () Function
Advanced Python- Modules
- What is a Module?
- Types of Modules
- How to write and use Module and Its Advantages
- The import Statement
- The from…import Statement
- …import * Statement
- Underscores in Python
- The dir () Function
- Creating User-defined Modules
- Command-line Arguments
- Python Module Search Path
Advanced Python- Packages
- What is a Package?
- Introduction to Packages?
- py file
- Importing module from a package
- Creating a Package
- Creating Sub Package
- Importing from Sub-Packages
- Popular Python Packages
Python Object Oriented Programming (OOPS)
- Introduction to OOPs Programming
- How to define a class?
- self-variable
- Python Constructors
- Method vs Constructor
- Types of Variables – Instance, Static and Local
- Types of Methods – for Instance, Class and Static
- Instance Methods Introduction
- Setter and Getter Methods
- Class Methods Introduction
- Static Methods Introduction
- Instance Method vs Class Method vs Static Method
- Accessing Members of one class inside another class
- Inner classes Introduction
- Nesting of Inner Classes
- Nested Methods
- Garbage Collection Introduction
- How to enable and disable Garbage Collector
- Destructor Introduction
- Inheritance Introduction
- Polymorphism Introduction
- Abstract Method and Abstract Class
- Interfaces in Python
- Interface vs Abstract Class vs Concrete Class
- Public Members
- Private Members
- Protected Members
- Data Hiding
- Abstraction
- Encapsulation
Python Exception Handling
- Python Errors (Syntax Error vs Runtime Error)
- Common Runtime Errors in PYTHON
- Abnormal termination
- Try … Except
- Try … Except … else
- Chain of importance Of Exception
- Exception Handling
- Try … finally
- The argument of an Exception
- Python Custom Exceptions
- Ignore Errors
- Assertions
- Using Assertions effectively
Case Studies
-
- NA