Skip to content

Latest commit

 

History

History
113 lines (84 loc) · 8 KB

PythonResources.md

File metadata and controls

113 lines (84 loc) · 8 KB

Python Programming Language and Resources to Learn

Click ⭐ if you like the project. Pull requests are highly appreciated. Follow @OmBharatiya for more updates.

More from this repo: All guides | Latest company questions | AI labs | System design | ML interviews | Blind 75 | NeetCode 150


  1. Best YouTube Channels to Learn

No. Channel
1 Complete Python Tutorial for Beginners by Telusko
2 Python Programming Beginners by Corey Schafer
3 Python for Beginners by Mosh
4 Python for Beginners in Hindi by CodeWithHarry
5 Python for Coding Interviews: Everything You Need to Know by NeetCode : Stdlib tour aimed at LeetCode, not a beginner course
6 Learn Python: Full Course for Beginners by freeCodeCamp
7 Python Full Course for Free by Bro Code
  1. Best GitHub Learning Resources

No. Repository
1 30 days of Python : A Step-by-step guide to learn Python programming language in 30 days.
2 Learn Python : Playground and cheatsheets for learning Python, split by topics and contain code examples with explanations.
3 Python Mini Projects: A collection of simple python projects. Archived and read-only since 2022, still useful as practice material
4 WTF Python: Explains some counter-intuitive snippets and lesser-known features in Python
5 Python Basics: Python fundamentals and interview questions. The old python-interview-questions repository was renamed to this
6 Python reference: Useful functions, tutorials, and other Python-related things. Last updated 2022
7 The Algorithms: Python: Reference implementations of standard algorithms and data structures, actively maintained. Read one after you solve the problem, not before
8 Interactive Coding Challenges: 120+ Python interview challenges as Jupyter notebooks, with Anki flashcards. Last updated 2024
9 Python Patterns: Design patterns in idiomatic Python, useful for low-level design rounds
  1. Best Udemy Courses

No. Course
1 Complete Python Bootcamp
2 Python and Django Full Stack Web Developer Bootcamp: Last updated 2019
3 REST APIs with Flask and Python
4 Python A-Z™: Python For Data Science With Real Exercises!
5 Python for Finance: Investment Fundamentals & Data Analytics
6 Machine Learning A-Z: ML, DL, AI with AWS, Python & R
7 Python for Data Structures, Algorithms, and Interviews!: Jose Portilla. Last updated 2022
  1. Python for Coding Interviews

Python is the most common choice in coding interviews because it keeps solutions short. These are the parts that come up most often.

LeetCode runs Python 3.14 as of October 2026 and preinstalls sortedcontainers, so 3.10+ syntax such as match and itertools.pairwise is safe there. Check the runtime on other platforms before relying on newer features.

Need Reach for Note
Counting collections.Counter most_common(k) solves top-K questions directly
Queue or deque collections.deque O(1) popleft(). A plain list is O(n)
Heap heapq Min-heap only. Push -x for a max-heap
Sorted insert bisect bisect_left finds the slot in O(log n). insort still shifts the list, so each insert is O(n)
Default values collections.defaultdict Avoids KeyError in graph adjacency lists
Grouping itertools.groupby Input must already be sorted by the key
Cache functools.cache or functools.lru_cache One decorator turns recursion into memoised DP. @cache (3.9+) is lru_cache(maxsize=None) with less typing
Big integers built-in int No overflow, unlike C++ or Java
Adjacent pairs itertools.pairwise 3.10+. pairwise([1, 2, 3]) yields (1, 2), (2, 3)
LRU cache question collections.OrderedDict move_to_end(key) and popitem(last=False) make LeetCode 146 a few lines
Sorted multiset sortedcontainers.SortedList Not stdlib, but LeetCode preinstalls it. O(log n) add, remove and bisect_left

Idioms interviewers expect to see

Instead of Write
Manual index loop for i, x in enumerate(xs)
Building a list then filtering A comprehension, or a generator when the input is large
Swapping with a temp variable a, b = b, a
Nested if for bounds if 0 <= r < rows and 0 <= c < cols
String concatenation in a loop "".join(parts), since strings are immutable

Things that cost people offers

  • Mutable default arguments: def f(acc=[]) keeps the same list across calls. Use None and create inside.
  • Shallow copies: grid = [[0] * n] * m makes m references to one row. Use a comprehension.
  • Recursion depth: the default limit is 1000, so deep DFS needs an iterative version.
  • Sorting cost: sorted() is O(n log n), which can quietly break a required O(n) bound.
  • Membership tests on a list: x in xs is O(n) per check. Inside a loop that becomes O(n^2); convert to a set first.

🔔 You Found the Shortcut. Don't Lose It.

New questions, papers, and strategies drop here every single week, before they surface anywhere else.

The engineers who land FAANG offers aren't the ones who find a resource. They're the ones who never lose it.

⚡ One click. Every update. Zero effort.

Watch Repo   Star Repo

Follow @ombharatiya for exclusive tips, paper breakdowns, and career moves that never make it into the repo:

GitHub Twitter LinkedIn

Preparing for a loop right now? Book a mock interview or a 1:1 mentorship session with the maintainer: Engine Bogie for mock interviews, Topmate for mentorship and consultancy.