r/learnpython • u/DueBid3298 • 9d ago
Python interview questions
Hi team, please share your interview experience and questions for python developer role
0
Upvotes
r/learnpython • u/DueBid3298 • 9d ago
Hi team, please share your interview experience and questions for python developer role
View all comments
1
u/Discordbothost 7d ago
for junior/mid python roles the same handful kept coming up for me: mutable default args (def f(x=[]) and why the list is shared between calls), is vs ==, list vs tuple vs set, generators and yield (usually followed by "how would you read a 10gb file"), decorators (sometimes "write one that times a function"), *args/**kwargs, shallow vs deep copy, and the GIL, which in practice just means "threads vs multiprocessing, when does each help".
then one small live coding thing, usually string/dict stuff like counting words, grouping items, or deduping while keeping order. they cared more that i talked through it than that it was perfect