Python Engineer Interview Questions

6,393 python engineer interview questions shared by candidates

SQL: joins, coalesce, having, group by. Pandas: DataFrame merges, filters. Python: a few basic questions, sorting algorithms, garbage collectors, MRO, context managers, inheritance, implementation of iterators (__iter__ and __next__), comprehension, threading, multiprocessing, FAST API, Flask, Django ORM, REST APIs, @property, *args and **kwargs, Pydantic, generators, decorators, functools and itertools, annotations, SOLID, design patterns, ACID, etc.. AWS: assign permissions to new users and access from Python.
avatar

Senior Python Developer

Interviewed at DataArt

4.4
Oct 23, 2025

SQL: joins, coalesce, having, group by. Pandas: DataFrame merges, filters. Python: a few basic questions, sorting algorithms, garbage collectors, MRO, context managers, inheritance, implementation of iterators (__iter__ and __next__), comprehension, threading, multiprocessing, FAST API, Flask, Django ORM, REST APIs, @property, *args and **kwargs, Pydantic, generators, decorators, functools and itertools, annotations, SOLID, design patterns, ACID, etc.. AWS: assign permissions to new users and access from Python.

Q1.What is global interpreter lock? Q2.# Write a Python program that takes a list of integers and returns a new list with each integer squared. However, if the squared value is greater than 50, replace it with the string 'Over 50'. The program should handle any exceptions that may arise from incorrect inputs gracefully without using inbuilt functions. # input_numbers = [1, 7, 8, 4, 'a', 3] # Output - [1, 49, 'Over 50', 16, 'Invalid input: Not an integer', 9] Q3.# Given a string, find non-repeating character in it and return its index. If it doesn't exist, return -1. # input='leetcode # output=['l','t','c','o','d']
avatar

Senior Python Developer

Interviewed at Synechron

4.1
Jan 11, 2025

Q1.What is global interpreter lock? Q2.# Write a Python program that takes a list of integers and returns a new list with each integer squared. However, if the squared value is greater than 50, replace it with the string 'Over 50'. The program should handle any exceptions that may arise from incorrect inputs gracefully without using inbuilt functions. # input_numbers = [1, 7, 8, 4, 'a', 3] # Output - [1, 49, 'Over 50', 16, 'Invalid input: Not an integer', 9] Q3.# Given a string, find non-repeating character in it and return its index. If it doesn't exist, return -1. # input='leetcode # output=['l','t','c','o','d']

Viewing 5211 - 5220 interview questions

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