Skip to content
b
buncho
.
Problems
Blog
Pricing
Search problems
Log in
Sign up
Loading…
Loading…
Python for AI/ML Interview Questions | Buncho
Topic
Python for AI/ML interview questions
Python language details that matter in ML code.
All topics
565
Python for AI/ML
75
Machine Learning Fundamentals
10
ML Algorithms
0
ML System Design
1
Deep Learning
5
Statistics and Mathematics
1
Generative AI and LLMs
122
Embeddings
13
RAG and Vector Databases
47
AI Agents and Tool Calling
50
MCP
0
Multimodal AI
29
LLM Evaluation and Testing
27
AI Safety, Ethics, and Responsible AI
36
AI System Design
41
Fine-Tuning
25
AI Infrastructure and Scalability
29
LLM Gateways
0
Production AI Engineering
39
AI Engineering Case Studies
15
Search problems
Difficulty
Difficulty
Easy
Medium
Hard
Problem type
All types
Conceptual
Practical exercise
Debugging
System design
Case study
75
problems
See how often each question is asked, and which companies asked it.
Part of Buncho Pro.
Unlock
Title
Topic
Type
Time
Asked
Companies
Level
Not started
1.
Why is Python the preferred language for AI?
Python for AI/ML · Conceptual · 5 min
Asked %
Companies
Python for AI/ML
Conceptual
5 min
Pro feature
Pro feature
Easy
Not started
2.
Type hints vs runtime validation: where does Pydantic fit?
Python for AI/ML · Conceptual · 10 min
Asked %
Companies
Python for AI/ML
Conceptual
10 min
Pro feature
Pro feature
Medium
Not started
3.
dataclass vs NamedTuple vs TypedDict vs Pydantic: how do you choose?
Python for AI/ML · Conceptual · 10 min
Asked %
Companies
Python for AI/ML
Conceptual
10 min
Pro feature
Pro feature
Medium
Not started
4.
Implement k-means clustering from scratch with NumPy
Python for AI/ML · Practical exercise · 20 min
Asked %
Companies
Python for AI/ML
Practical exercise
20 min
Pro feature
Pro feature
Medium
Not started
5.
Build a leakage-free scikit-learn pipeline with mixed feature types
Python for AI/ML · Practical exercise · 15 min
Asked %
Companies
Python for AI/ML
Practical exercise
15 min
Pro feature
Pro feature
Medium
Not started
6.
Implement an LRU cache with O(1) get/put, then add per-entry TTL
Python for AI/ML · Practical exercise · 18 min
Asked %
Companies
Python for AI/ML
Practical exercise
18 min
Pro feature
Pro feature
Medium
Not started
7.
Debug equality checks that fail on floats and NaN
Python for AI/ML · Debugging · 8 min
Asked %
Companies
Python for AI/ML
Debugging
8 min
Pro feature
Pro feature
Easy
Not started
8.
Implement a token-bucket rate limiter for an LLM API where the cost of a request scales with its tokens, then make it distributed with Redis
Python for AI/ML · Practical exercise · 25 min
Asked %
Companies
Python for AI/ML
Practical exercise
25 min
Pro feature
Pro feature
Hard
Not started
9.
Shallow copy vs deep copy in Python
Python for AI/ML · Conceptual · 8 min
Asked %
Companies
Python for AI/ML
Conceptual
8 min
Pro feature
Pro feature
Easy
Not started
10.
Implement a caching layer for LLM responses
Python for AI/ML · Practical exercise · 15 min
Asked %
Companies
Python for AI/ML
Practical exercise
15 min
Pro feature
Pro feature
Medium
Not started
11.
Turn a data scientist's notebook into a production-ready service
Python for AI/ML · Case study · 25 min
Asked %
Companies
Python for AI/ML
Case study
25 min
Pro feature
Pro feature
Medium
Not started
12.
Debug a normalisation function that corrupts the original dataset
Python for AI/ML · Debugging · 10 min
Asked %
Companies
Python for AI/ML
Debugging
10 min
Pro feature
Pro feature
Medium
Not started
13.
Tensors vs NumPy arrays: autograd, detach(), no_grad and memory sharing
Python for AI/ML · Conceptual · 12 min
Asked %
Companies
Python for AI/ML
Conceptual
12 min
Pro feature
Pro feature
Medium
Not started
14.
How do you deploy an AI model using Python?
Python for AI/ML · Conceptual · 8 min
Asked %
Companies
Python for AI/ML
Conceptual
8 min
Pro feature
Pro feature
Medium
Not started
15.
Threading vs multiprocessing vs asyncio: which one for which ML task?
Python for AI/ML · Conceptual · 12 min
Asked %
Companies
Python for AI/ML
Conceptual
12 min
Pro feature
Pro feature
Medium
Not started
16.
Debug a function that remembers state between calls
Python for AI/ML · Debugging · 5 min
Asked %
Companies
Python for AI/ML
Debugging
5 min
Pro feature
Pro feature
Easy
Not started
17.
pickle vs joblib vs safetensors: how should you save and load models safely?
Python for AI/ML · Conceptual · 10 min
Asked %
Companies
Python for AI/ML
Conceptual
10 min
Pro feature
Pro feature
Medium
Not started
18.
Write a PyTorch Dataset and a padding collate function for variable-length text
Python for AI/ML · Practical exercise · 18 min
Asked %
Companies
Python for AI/ML
Practical exercise
18 min
Pro feature
Pro feature
Medium
Not started
19.
Find the top-k most similar documents with cosine similarity in NumPy
Python for AI/ML · Practical exercise · 15 min
Asked %
Companies
Python for AI/ML
Practical exercise
15 min
Pro feature
Pro feature
Medium
Not started
20.
Variable scope (LEGB), closures and nonlocal
Python for AI/ML · Conceptual · 9 min
Asked %
Companies
Python for AI/ML
Conceptual
9 min
Pro feature
Pro feature
Medium
Page 1 of 4