Skip to content

Python Developer interview questions

Core Python, OOP, data structures, web frameworks, async, testing and performance.

198 questions · 7 topics · 14 free answers

Python Developer roadmap4 stages from basics to interview-ready. Learn the gaps, then come back and practise.

0 of 198 practised · 0 bookmarked · saved on this device

198 questions

  1. #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.

  2. #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.

  3. #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.

  4. #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.

  5. #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.

  6. #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.

  7. #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.

  8. #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.

  9. #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.

  10. #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.