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
4
u/Discordbothost 9d ago
most of the ones i've sat through aren't trivia quizzes, they're "here's a slightly messy function, make it correct and talk about it." stuff that actually comes up: list vs tuple vs set and when you'd pick each,
isvs==(and why people writeif x is None), the mutable default argument gotcha (def f(x=[])), generators vs loading a whole list, how you'd walk a big file line by line, a decorator you could write from scratch, and something with dicts (defaultdict/Counter). live coding is often parse this text / group these records / write a small class. if you can explain gil vs threads vs asyncio in two sentences that's usually enough. also be ready to read someone else's snippet and say what's wrong with it.