Python Programmer Interview Questions

5,395 python programmer interview questions shared by candidates

Technical/Conceptual Questions 9. How does the internet work? (Describe what happens when you type a URL and press Enter.) 10. Is the DNS lookup process the same for well-known and niche websites? 11. What is Docker? How does it differ from a virtual machine? 12. What’s the difference between a Python list and a tuple? 13. If you have a mutable object inside a tuple, can it be changed? 14. What is a decorator in Python? 15. What’s the difference between a process and a thread? 16. What is the GIL (Global Interpreter Lock) and why is it important in Python threading? 17. What’s the difference between async IO and threads in Python? 18. What’s the difference between “is” and “==” in Python? 19. Does a Python list have a fixed capacity? How are lists implemented in other languages? 20. When you append to a list in Python, what is the time complexity? Coding Challenge 21. Implement a stemming algorithm that removes certain suffixes from words (live coding in HackerRank). 22. How would you optimize your code if more suffixes needed to be added? 23. What’s the time complexity and space complexity of your stemming solution? 24. Can appending to a list ever be O(n) instead of O(1)? Under what circumstances?
avatar

Python Developer Intern

Interviewed at Squarepoint Capital

3.9
Oct 20, 2025

Technical/Conceptual Questions 9. How does the internet work? (Describe what happens when you type a URL and press Enter.) 10. Is the DNS lookup process the same for well-known and niche websites? 11. What is Docker? How does it differ from a virtual machine? 12. What’s the difference between a Python list and a tuple? 13. If you have a mutable object inside a tuple, can it be changed? 14. What is a decorator in Python? 15. What’s the difference between a process and a thread? 16. What is the GIL (Global Interpreter Lock) and why is it important in Python threading? 17. What’s the difference between async IO and threads in Python? 18. What’s the difference between “is” and “==” in Python? 19. Does a Python list have a fixed capacity? How are lists implemented in other languages? 20. When you append to a list in Python, what is the time complexity? Coding Challenge 21. Implement a stemming algorithm that removes certain suffixes from words (live coding in HackerRank). 22. How would you optimize your code if more suffixes needed to be added? 23. What’s the time complexity and space complexity of your stemming solution? 24. Can appending to a list ever be O(n) instead of O(1)? Under what circumstances?

Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must write an algorithm with O(log n) runtime complexity. Example 1: Input: nums = [1,3,5,6], target = 5 Output: 2

Python Developer

Interviewed at InterviewVector

3.7
Aug 23, 2022

Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must write an algorithm with O(log n) runtime complexity. Example 1: Input: nums = [1,3,5,6], target = 5 Output: 2

The first one was 4 questions on code signal, and you have to answer to proceed in person. The second one was an interview with an employee to dig into your past work and also questions about finding the top 5 performing stores in a chain of stores.
avatar

Lead Python Developer

Interviewed at Egen

4.2
Mar 13, 2023

The first one was 4 questions on code signal, and you have to answer to proceed in person. The second one was an interview with an employee to dig into your past work and also questions about finding the top 5 performing stores in a chain of stores.

Viewing 5211 - 5220 interview questions

Glassdoor has 5,395 interview questions and reports from Python programmer interviews. Prepare for your interview. Get hired. Love your job.