Python Developer interview questions
Core Python, OOP, data structures, web frameworks, async, testing and performance.
198 questions · 7 topics · 14 free answers
0 of 198 practised · 0 bookmarked · saved on this device
198 questions
#1How do you swap two variables in Python?EasyConceptCore Python Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#2What does enumerate do?EasyConceptCore Python Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#3What does zip do and what happens with unequal lengths?EasyConceptCore Python Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#4What is the walrus operator?MediumConceptCore Python Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#5What is the difference between a shallow equality check on lists and identity?MediumConceptCore Python Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#6How would you group a list of dictionaries by a key?MediumScenarioCore Python Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#7How does Python's import system find and cache modules?HardConceptCore Python Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#8What does self refer to in a method?EasyConceptOOP and design Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#9What is name mangling?MediumConceptOOP and design Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#10When would you choose a dataclass over a plain class or a namedtuple?MediumScenarioOOP and design Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
Hunting for a Python Developer role too? See open Python Developer jobs.