
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Discover Python: an interpreter, high-level dynamic language with procedural, object-oriented, and functional paradigms and core design principles like beautiful is better than ugly and explicit is better than implicit.
Explore Python’s features, including dynamic typing, cross-platform portability, and open source extensible standard library, plus support for procedural and object-oriented programming, unit testing, data analytics, machine learning, and web development.
Explore why Python became the most popular language by examining its open source, simplicity, and strong community support with big data, machine learning, and artificial intelligence libraries.
Discover how Python powers careers across web development, cloud and devops, big data, machine learning, and the internet of things.
Download and verify Python 3.9.5 for Windows from python.org, checking the checksum. Install with default or custom options, then verify with the command prompt and python shell.
Learn to install Python 3 on Ubuntu 16.04 within a Linux environment (VirtualBox on Windows): update packages, install Python 3, verify the installation, and run a simple Python snippet.
Install Python 3 on Ubuntu 18.04, upgrade the Linux environment with sudo commands, and verify the Python version; practice basic Python usage with variables and printing.
Learn how Python handles comments, including single-line, multiline, and docstring comments, with hash syntax and the interpreter ignoring them, plus best practices for clear, informative code annotations.
Explore Python docstrings and how they document functions, classes, and modules using triple-quoted strings, distinct from comments, and access them with the help function.
Explore how Python declares variables by assigning values, observe dynamic typing in action, and learn about types, memory addresses, and declaration syntax.
Explore Python variable scopes, including global and local scope, and how same-name variables exist across different scopes. Use the global keyword to access or modify global variables inside functions.
Explore enclosing and built-in scopes in Python, studying global and local variables, nested functions, and how inner variables affect or do not affect outer ones through nonlocal scope.
Explore the nonlocal keyword in Python 3, learn how inner functions access and modify variables in outer scopes, and why binding errors occur in nested function contexts.
Learn how the delete keyword removes a variable reference, triggering garbage collection when no references remain, causing a name error if accessed after deletion.
Explore Python numeric types, including integers, floats, and complex numbers, and booleans, with decimal, binary, octal, and hexadecimal representations, plus type checking and base conversions.
Explore the seven groups of Python operators, including arithmetic, bitwise, assignment, comparison, logical, identity, and membership operators. See how they perform mathematical, logical, and set operations on values.
Explore arithmetic operators in python, including addition, subtraction, multiplication, division, modulus, exponentiation, and floor division. See examples like five minus four equals one and five multiplied by four equals twenty.
Learn how assignment operators combine operations with variable values using shorthand forms like += and the seven related operators, then apply bitwise assignment with and, or, xor, and shifts.
Explore six comparison operators in Python to compare values and yield true or false, including ==, !=, >, <, >=, and <=.
Explore how logical operators in Python combine conditional statements using and, or, and not to yield true or false.
Master bitwise operators in python by exploring and, or, xor, not, and left and right shift with binary examples and practical number operations.
Explore identity operators in Python, learning how 'is' and 'is not' compare objects by memory location rather than value, and contrast them with value-based comparison and other operator families.
Learn how membership operators in and not in check whether a value exists in a sequence, like a list, with true or false results and practical examples.
Explore the agenda for the tuple data type in Python, covering creation methods, indexing and slicing, immutability, element access, concatenation, and unpacking.
Learn how to create and manipulate tuples in Python, exploring immutability, heterogeneous and duplicate elements, nested structures, and single-element tuples with a trailing comma for accurate syntax.
Explore how to index elements in a Python tuple, access items with positive and negative indices, and iterate using range and len on a sample omeprazole tuple.
Learn to use the tuple index() method to locate an element. Explore the three usage patterns—element only, with start, and with start and end—and not-found errors.
Learn how tuples remain immutable and how to append elements by converting to a list, adding items, and converting back to a new tuple.
Learn how to change elements in a tuple by converting it to a list, modifying, and converting back, while noting that tuples are immutable but lists inside can be changed.
Explore how to delete elements from a tuple by converting to a list, and perform removal on nested structures like lists contained in a tuple, while understanding tuple immutability.
Learn how to slice elements from a tuple using positive and negative indexing, with start, end, and step values, via the colon operator and the slice method.
Learn how to concatenate tuples in Python using multiple methods, including the plus operator, operator.add, unpacking with the star syntax, and repetition, while acknowledging tuple immutability.
Learn how to count element occurrences in tuples using Python's count method, which takes a single argument and returns how often numbers or strings appear, with errors for multiple arguments.
Explore unpacking tuple elements into variables in Python, using exact-variable assignments or an asterisk to capture remaining values, with examples and common error handling.
Master the Python set data type by learning its properties, creation, access, adding and removing elements, and performing union, intersection, and difference operations, including subset and superset comparisons.
Learn how Python sets store multiple unique values, are unordered and unindexed, and cannot hold lists or dictionaries; create sets with curly braces and perform union, intersection, and difference.
Learn to create and initialize Python sets with literals and the set constructor, including empty sets, boolean sets, and string sets, and explore duplicates and frozen sets.
Access elements in a Python set by using the in operator and for loops, check membership, and copy a set to access values, noting that order is undefined.
Learn to create and populate a set with add and update, recognizing that sets are unordered and store only immutable elements, while duplicates are not allowed.
Learn how to remove elements from a set in Python using remove, discard, pop, clear, and del, including handling non-existent elements and the unordered nature of sets.
Explore union join of sets in python using update and union to combine two sets and remove duplicates. See how union returns a new set, while update mutates the original.
Learn the intersection of sets in Python by comparing intersection and intersection_update, retaining only common elements from two sets and returning either a new set or updating the first set.
Learn how to compute the difference of sets in Python, using difference and difference_update to get elements in one set that are not in the other, with practical examples.
Explore the symmetric difference of sets, returning elements not shared by two sets, illustrated with Python examples, and compare symmetric_difference versus symmetric_difference_update operations.
Explore disjoint sets, subsets, and supersets with Python set operations, and verify disjointness, subset, and superset relationships through practical examples.
Compare list, tuple, and set in Python. Lists are mutable and ordered; tuples are immutable; sets are unordered and hold immutable elements, including tuples.
Explore how dictionaries in Python store key-value pairs, enforce unique keys, and use a hash table and hash function to store and access elements with multiple data types.
Discover multiple ways to create dictionary objects in python, using curly brackets, the dict constructor, and dictionary comprehension, including nested dictionaries and unique keys.
Learn how to create and update Python dictionaries, including adding elements by key, using update with single or multiple items, and storing lists, sets, or nested dictionaries as values.
Learn how to access dictionary elements in Python using key index, the get method, and views for keys, values, and items, including nested dictionaries and presence checks.
Update dictionary elements in Python using key index assignment, the update method, and merging with another dictionary; learn how keys, values, and items control additions and updates.
Explore multiple ways to remove elements from a Python dictionary, including pop, popitem, del, and clear, and learn how these operations affect dictionary contents and the dictionary object.
Learn how to copy dictionary elements in Python using assignment, copy, and dict constructor, and understand reference versus actual copies.
Explore dictionary built-in functions in Python, including all, any, len, and sorted, with examples of evaluating non-empty and empty dictionaries. Learn how these functions reveal keys, lengths, and sorted orders.
Learn how fromkeys creates a dictionary with given keys and a default value, and how setdefault adds missing keys with defaults or leaves existing values unchanged.
Learn how to validate key existence with in and not in, and iterate through dictionary keys to access and print their values using a sample courses dictionary.
Learn to create dictionaries with Python dictionary comprehension. Use range, loops, conditions, and functions to map keys to values, including squares and string examples.
We have created this course with detailed explanation of every concept.
Currently we are publishing the content which is already prepared as part 1 of this course and will cover more topics of Python Programming Language.
This course covers theory and practical with examples for every conceptual topic of Python.
Following sections are covered in detail:
Python Introduction - Core principals of Python, features of Python, Python popularity, industrial domains & career growth with Python
Python Installation - Installation of Python on Windows, Linux Ubuntu(v16.04), Linux Ubuntu(v18.04)
Comments in Python - Single line & multi-line comments in Python, docstring in Python
Python Variables - Variables in Python, Python variable scopes, enclosing & built-in scopes, nonlocal keyword, delete variable, number & Boolean datatype in Python
Python Operators - Operator groups in Python, Arithmetic operator, Assignment operator, Comparison operator, Logical operator, Bitwise operator, Identity operator, Membership operator
Python Datatypes
Python Datatype Tuple - Creation of Tuple, Tuple elements index, index() method, append, change & delete of Tuple elements, slicing of elements, concatenation and unpacking of elements in Tuple, coding exercises on Tuple
Python Datatype Set - Creation of Set, accessing, add & remove of elements in Set, Mathematical operations like Union Join, Intersection, Difference, Symmetric Difference on Set, disjoint set, superset, subset methods, coding exercises on Sets
Python Datatype Dictionary - Creation of Dictionary, add, access, update, remove elements in Dictionary, shallow copy and deep copy of Dictionary, nested Dictionary, Dictionary built-in functions, Dictionary comprehension, coding exercises on Dictionary
Practice programs
Practical labs
Coding exercises
In future (near time) we will cover the other important topics of Python with this course. Following topics will be covered:
Flow control & loops in Python
Concepts of Object Oriented Programming (OOPs)
File handling, exception handling and modules in Python programming language