
Explore getting started with Python, a high-level general-purpose language, covering installation, core concepts (data types, control structures, functions, modules), and an introduction to advanced topics and tooling.
Explore Python fundamentals by detailing keywords and reserved words, variables, data types, and typecasting; learn about constants by convention uppercase, escape characters, and dynamic input for robust programs.
Explore Python operators across arithmetic, relational, equality, logical, identity, membership, bitwise, and assignment types; learn precedence, chaining, and special cases like string operations and ternary expressions.
Explore Python flow control, including conditional statements (if, elif, else, nested), transfer statements, and iterative constructs (while loops and for loops), with emphasis on conditions, operators, and execution flow.
Explore the string data type in Python, including creation with single, double, and triple quotes, multi-line literals, escaping quotes, and substring access via index and slice.
Learn about Python list data type, a mutable dynamic collection that preserves insertion order, supports indexing, slicing, traversing, and list comprehension with diverse methods.
Master the Python tuple data type: immutable, read-only from lists; learn creation, indexing, slicing, packing and unpacking, and key operations like concatenation, repetition, and min/max.
Learn how the Python set data type stores unique, mutable values, creates sets from sequences, supports union, intersection, difference, symmetric difference, and set comprehension, with no indexing or slicing.
Learn how dictionaries store data as key-value pairs, with unique keys and mutable values, supporting creation, access by key, updates, deletions, and various methods while preserving insertion order.
Learn how to define and call functions in Python using def, parameters, arguments, and return values. Compare built-in and user-defined functions, docstrings, and function declaration versus invocation.
Learn how Python organizes code into functions, modules, and libraries, and distinguish global and local variables, including using the global keyword to share data across functions.
Learn how Python classes define and manage instance variables, static variables, and local variables, using self and object references to declare, access, modify, delete, and inspect them via __dict__.
Explore instance, class, and static methods in Python, including getter and setter patterns, and learn about nested inner classes and the role of garbage collection and destructors.
Explore inheritance in Python and the is-a relationship versus the has-a relationship through practical examples, showing code reuse with parent and child classes and reduced duplication.
Explore the various inheritance types in Python, including single, multi-level, hierarchical, multiple, and hybrid, and learn why cyclic inheritance is not supported, plus the diamond problem and MRO.
Explains the diamond problem in multiple inheritance and how Python's MRO resolves ambiguity. Demonstrates using super to access parent members from child classes.
Explore abstraction, interfaces, and encapsulation in Python, learning how abstract methods and classes define partially implemented designs, and how concrete classes differ from interfaces.
Learn Python encapsulation to hide data and restrict external access, using public, protected, and private attributes, name mangling, and string representations and singleton concepts.
Python Modules
Master Python file handling by opening text and binary files, using read, write, append, and writelines modes, and safely closing files with context managers for reliable data management.
Learn practical file handling in Python, part two, including checking file existence with OS and pathlib, reading and writing text and binary data, and zipping and unzipping files.
Explore Python regular expressions with the re module, focusing on character classes, quantifiers, and core functions like match, fullmatch, search, and sub for validation and pattern matching.
Explore Python regular expressions by using character classes, quantifiers, and core re functions (search, findall, finditer, sub, split) to validate, extract emails, URLs, dates, and perform web scraping.
Course Title: Python Programming (Basic To Advanced)
Course Description: Python has become a cornerstone in the programming world, renowned for its simplicity, versatility, and readability. "Introduction to Python Programming" is designed to be an immersive learning experience, providing a solid foundation in both fundamental programming concepts and the Python language. Whether you are a beginner eager to enter the world of programming or an experienced developer looking to add Python to your skill set, this course will equip you with the knowledge and skills needed to excel in various domains, including web development, software development, and scientific applications.
Take-Away Skills: Upon completion of this course, participants will gain confidence in programming with Python. The key take-away skills include a comprehensive understanding of Python syntax, data structures, control statements, functions, object-oriented programming, and practical problem-solving using Python.
Topics Covered:
Module 1: Python Programming
1. Getting Started with Python
Overview of Python Programming Language
Downloading and Installing Python
Setting Up Python Environment
Configuring Python Path in Environment Variables
Verifying Python Installation
Introduction to pip – Python Package Installer
2. Working with PyCharm IDE
Installing PyCharm
Setting Up a New Python Project
Navigating the PyCharm Interface
Writing and Running Python Scripts
First Python Script
Understanding Python File Structure
Running Scripts in PyCharm and via Command Line
Console Output and print() Function
String Formatting Techniques
3. Python Basics
Variables and Data Types
Declaring and Initializing Variables
Data Types: int, float, str, bool
Type Casting
Operators in Python
Arithmetic, Comparison, Logical, and Assignment Operators
4. Control Flow Statements
Conditional Statements
if, if-else, elif, and Nested if
Looping Constructs
for and while Loops
Nested Loops
Loop Control: break, continue, pass
5. Python Data Structures
Lists
Creating, Accessing, and Modifying Lists
Common List Methods
Tuples
Characteristics and Operations
Strings
Declaration, Methods, Operations, and Formatting
Dictionaries
Creating, Accessing, and Dictionary Methods
Sets
Creating, Accessing, Set Operations and Methods
Module 2: Python Object-Oriented Programming
1. Classes and Objects
Defining Classes and Creating Objects
Instance Variables and Methods
Writing Functions Inside and Outside Classes
2. Method Parameters
Positional Arguments
Keyword Arguments
Default Parameter Values
3. Constructors and Overloading
Understanding the __init__ Method
Constructor Creation and Default Arguments
Method Overloading using Default Parameters
Simulating Constructor Overloading
4. Static Members
Static Variables
Static Methods using @staticmethod
5. Inheritance in Python
Types of Inheritance
Single, Multiple, Multilevel, and Hierarchical
Method Overriding
Using super() to Call Parent Class Methods
6. Python Modules and Packages
Creating and Importing Modules
Working with Packages
Namespace Management
7. Exception Handling
Built-in Exception Handling
try, except, else, finally Blocks
Raising and Custom Exceptions
Using assert Statements
8. Advanced Concepts
Decorators in Python
Generators in Python
Module 3: Basic Programs:
Swapping two numbers
Checking whether a number is prime or not
Calculating the factorial of a number
Generating Fibonacci numbers
Array Programs:
Finding the sum of an array
Finding the maximum and minimum elements in an array
List Programs:
Finding the length of a list
Swapping first and last elements in a list
Swapping two elements in a list
Removing the Nth occurrence of a given word
Checking if an element exists/searching in a list
Clearing a list in different ways
Reversing a list
Cloning or copying a list
Counting occurrences of an element in a list
Finding the sum of elements in a list
Finding the smallest number in a list
Join us on a journey to master Python and unlock a world of possibilities in the realm of programming!