References:
1
Core Python
Data types (int, float, str, bool), lists, tuples, sets, dictionaries, type casting, basic operators, comparison operators, and logical operators
2
Control Flow
if-else statements, for loops, while loops, break, continue, pass
3
Comprehensions
List, set, and dictionary comprehensions, filtering elements, nested comprehensions
4
Functions
Defining functions, return values, *args, **kwargs, lambda functions, recursion, default and keyword arguments
5
OOP Concepts
Classes, inheritance, encapsulation, polymorphism, class attributes vs instance attributes, init method, @staticmethod, @classmethod, super(), method resolution order (MRO)
6
Exception Handling
try-except-finally, raising exceptions (raise), custom exceptions, assertions
7
Working with Files
with open() for file handling, file modes ('r', 'w', 'a', etc.), reading large files efficiently (line by line), file reading techniques, context managers
8
Data Structures
Lists, tuples, sets, dictionaries, Stacks (using lists), Queues (using collections.deque), namedtuple, Counter (from collections), DefaultDict (from collections)
9
Pythonic Code
One-liners, list comprehensions, use of any(), all(), sorted() with lambda, ternary operators, zip(), efficient looping with zip() and enumerate()
10
Performance Tips
Generator vs list (using yield), time and space complexity, memory profiling (memory_profiler module), using functools.lru_cache for caching
11
Scripting Skills
Writing command-line interface (CLI) scripts, using argparse for argument parsing, os module for file and directory manipulation, subprocess for running shell commands
12
Concurrency
Basic threading, the Global Interpreter Lock (GIL), multiprocessing basics, asynchronous programming with asyncio
13
Decorators
Function decorators (@decorator_name), class decorators, built-in decorators (e.g., @staticmethod, @classmethod), creating custom decorators, chaining decorators
14
Imp-Standard Libraries
math, collections, itertools, and String Manipulation, Other useful libraries.
15
Iterables vs. Iterators vs. Generators
Last updated 9 months ago