
Revise Python language concepts and libraries, assess your knowledge, and prepare for interviews through interactive quizzes on strings and object oriented programming inheritance, with explanations and hands-on coding practice.
Discover Python language elements, including its structured, object oriented, and functional paradigms, its interpreter based execution, indentation rules, line continuation with backslashes, and boolean to int conversion.
Explore Python conditional statements, including if, elif, conditional expressions, and match, and learn about short-circuiting, optional else, and proper indentation for blocks.
Explore Python looping structures, including while and for loops, and learn how range, break, continue, and else govern execution and control infinite looping.
Explore strings in Python, mastering slicing for reverse last three characters, and essential operations like concatenation, immutability, index vs find, replace, raw strings, and f-strings.
Explore Python lists: features like duplicates, insertion order, iterability, and subscriptability; learn list comprehension, creation from ranges, and common operations such as count, sort, and concatenation.
Explore Python tuples and sets, outlining set features such as no duplicates and no order, operations like intersection and symmetric difference, and how tuple behavior relates to unpacking and mutability.
Explore Python dictionaries: unique keys, nested values, key-based access, get with defaults, updates and merging, iteration with keys and items, dictionary comprehension, and match statements.
Explore operators for collections in Python, including enumerate, in and not in, len, and zip with strict mode, plus set behavior and list unpacking.
Learn to pass and unpack parameters with tuples and star and double star syntax, return multiple values as a tuple, and understand positional-only parameters and dictionary unpacking.
Explore functional programming in Python, including lambda expressions, nested local functions, non-local variables, and how map, filter, and the sorted key argument use return values.
Explore Python modules and packages, including sys.path search, importing with aliases, __init__.py execution, and private members, plus installing libraries with pip and handling command line arguments.
Explore Python object oriented programming basics, including instance methods with self, and implementing dunder methods for comparison. Learn about static and class methods, attributes, and properties for class design.
Explore inheritance concepts in Python, including abstract methods and abstract classes via the abc module, the super function, issubclass, multiple inheritance, and method resolution order, plus overriding rules.
Explore how Python handles exceptions with raise, finally, and else; learn about iterators, stop iteration, and how generators use yield to lazily produce values and are also iterators.
Explore regular expressions to validate alphabetic strings and spaces, and master date time handling with parsing, formatting, and basic date arithmetic using Python's date time module.
Master Python file handling and binary and json serialization, including reading and writing with context managers, using os walk, renaming files, and pickle for encoding.
Explore multithreading by creating a thread object with a target function, overriding the run method in a subclass, and starting threads via the threading module.
Explore Python's collections module, its extra data structures like named tuple, deque, and Counter, and learn how shallow and deep copies differ from simple assignment.
Explore database access with db api 2.0 in python and commit for permanence. Use execute to insert and fetchall or fetchone for results.
Master the requests library, installed via pip, to perform HTTP requests, authenticate with username and password, inspect status codes, parse JSON, access content, post data, and read text responses.
Explore how to use the BeautifulSoup library for web scraping—parsing html and xml, extracting data with find and find all, and handling class and id attributes.
Learn type hints in Python, adding a static typing edge to a dynamically typed language; arrows define return types, list[str], and type aliases, noting runtime ignores hints.
Next, pursue web development with Python or data science by cleaning, transforming, and visualizing data with pandas to build machine learning models; explore Django and other resources.
This course is designed to enable you assess your knowledge of Python so that you prepare well for Python Interviews (oral or written).
Please note, Interviews do not have any predefined syllabus or structure. It all depends on the interviewer.
So, the best way to prepare for interview is to cover all important concepts of the language and fill whatever gaps that exist.
In this course, you get questions regarding every important topic of Python language so that you get an overall assessment of your language knowledge.
This course is the best way for you to revise and refresh your knowledge of Python before you attend any interview.
This course is not about algorithms and how to implement them in Python, instead, it is about Python language concepts and what is valid and what is not valid in the language.
The following are the major topics covered in this course:
Language Elements - Data Types, Operators and REPL
Control Statements - If statements and Looping structures
Data Structures - Strings, Lists, Tuples, Sets and Dictionaries
Functions - Parameters of all types, Return type, Passing Parameters, Nested functions, Variable scopes
Functional Programming
Object Oriented Programming - Classes, Static members, Abstract methods, Special Methods and Inheritance
Exception Handling
Iterators and Generators
File Handling
Serialization - Binary and JSON
os module
Regular Expression - re Module
DateTime Module
Database Access - DB API 2.0
Requests Library
BeautifulSoup Library
Collections Module
Type Hints
Multithreading
Features of the course:
Each lesson covers one area of the language or library.
Read the question and try to answer by pausing the video. Once your answer is ready then resume and get the right answer and understand why it is correct and others are not correct from my explanation.
You get a PDF with all questions for each lesson, which includes the code snippets.
Do experiment with code snippets in your system to understand where you went you wrong (in case your answer is wrong). This is very important, not just to prepare for interviews, but also to learn language more thoroughly.
I used Python version 3.11.5 and PyCharm community edition 2023.2.1. Feel free to use any other editor or IDE.