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

31 questions match

Data structures and algorithms
  1. #1What is the cost of checking membership in a list versus a set?MediumConceptData structures and algorithms 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. #2How would you find the intersection of two large lists efficiently?MediumScenarioData structures and algorithms 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. #3How would you implement a trie for autocomplete?HardScenarioData structures and algorithms 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. #4How do you find the largest and smallest value in a list?EasyConceptData structures and algorithms 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 time complexity of dictionary and set operations in the worst case?MediumConceptData structures and algorithms 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 check whether two strings are anagrams?MediumScenarioData structures and algorithms 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 do you rotate a list by k positions?MediumScenarioData structures and algorithms 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. #8How would you implement binary search?MediumScenarioData structures and algorithms 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 the difference between memoisation and tabulation?HardConceptData structures and algorithms 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. #10How would you find the median of a stream of numbers?HardScenarioData structures and algorithms 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.