Python Interview Questions

6,382 python interview questions shared by candidates

The question was to write a generic API to accept the SQL queries data like table name, select columns, ordering using a column name, applying aggregation to it and filtering the data with multiple "and" and "or" conditions. Accept the request from API and convert it into the SQL query in the backened and give the response back.
avatar

Python Developer

Interviewed at Adjust

3.2
Dec 24, 2021

The question was to write a generic API to accept the SQL queries data like table name, select columns, ordering using a column name, applying aggregation to it and filtering the data with multiple "and" and "or" conditions. Accept the request from API and convert it into the SQL query in the backened and give the response back.

what I do in my current organization? the next set of questions were related to python and computer science concepts. 1. what is GIL(global interpreter lock) in python. 2. what is deep copy and shallow copy with example on an online editor 3. which code works faster? 1. with open("input.txt") as f: data = f.readlines() for line in data: process(line) -------------------------------- 2. with open("input.txt") as f: for line in f: process(line) 4. iterator,generator,event loop 5. set ,dict tuple 6. mutable and immutable what are these data types 7. what is lazy eval 8. concurrency vs parallelism 9. memory allocation in python
avatar

Backend Developer (Python)

Interviewed at Fynd

3.5
Jun 25, 2021

what I do in my current organization? the next set of questions were related to python and computer science concepts. 1. what is GIL(global interpreter lock) in python. 2. what is deep copy and shallow copy with example on an online editor 3. which code works faster? 1. with open("input.txt") as f: data = f.readlines() for line in data: process(line) -------------------------------- 2. with open("input.txt") as f: for line in f: process(line) 4. iterator,generator,event loop 5. set ,dict tuple 6. mutable and immutable what are these data types 7. what is lazy eval 8. concurrency vs parallelism 9. memory allocation in python

Viewing 871 - 880 interview questions

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