Python Interview Questions

6,405 python interview questions shared by candidates

My experiences. Software Architecture interview : gave me some scenario about software development and asked me about what I would do, what tech stacks I would use, how would I manage a project, my open source contributions, agile vs waterfall etc. and other software development practices
avatar

Python Engineer

Interviewed at Canonical

3.2
Jun 29, 2026

My experiences. Software Architecture interview : gave me some scenario about software development and asked me about what I would do, what tech stacks I would use, how would I manage a project, my open source contributions, agile vs waterfall etc. and other software development practices

What is Python, and why is it popular in data processing and analysis? Explain the differences between Python 2 and Python 3. What are decorators in Python, and how do they work? Describe list comprehensions and generator expressions in Python. What are lambda functions? Provide an example. Explain the Global Interpreter Lock (GIL) in Python. What is the purpose of the __init__ method in Python classes? What are Python decorators, and how are they used in web frameworks? Explain the concept of Python virtual environments. Why are they useful? What is the difference between shallow copy and deep copy in Python? How do you handle exceptions in Python? Explain the try, except, finally, and raise statements.
avatar

Python Developer

Interviewed at Dell Technologies

3.7
Oct 13, 2023

What is Python, and why is it popular in data processing and analysis? Explain the differences between Python 2 and Python 3. What are decorators in Python, and how do they work? Describe list comprehensions and generator expressions in Python. What are lambda functions? Provide an example. Explain the Global Interpreter Lock (GIL) in Python. What is the purpose of the __init__ method in Python classes? What are Python decorators, and how are they used in web frameworks? Explain the concept of Python virtual environments. Why are they useful? What is the difference between shallow copy and deep copy in Python? How do you handle exceptions in Python? Explain the try, except, finally, and raise statements.

Viewing 2071 - 2080 interview questions

Glassdoor has 6,405 interview questions and reports from Python interviews. Prepare for your interview. Get hired. Love your job.