Python Programmer Interview Questions

5,414 python programmer interview questions shared by candidates

Started with technical questions -- 1. Given a nested list. Write python program to flatten it. - input_list = [ [1,2], [3,4], [[4] , [6]] ] - output_list = [1,2,3,4,4,6] 2. Given a string. Return total number of times each character occurs in that string. 3. Explain Generators in Python. 4. How to create empty Pandas dataframe? Create dataframe using a dictionary. 5. Asked to rate myself in SQL, AWS (name the relevant services too). 6. Have you worked in ML, what kind of use cases? 7. Have you written class/object oriented or functional based programming ?
avatar

Python Developer

Interviewed at Wipro

3.6
Jun 17, 2024

Started with technical questions -- 1. Given a nested list. Write python program to flatten it. - input_list = [ [1,2], [3,4], [[4] , [6]] ] - output_list = [1,2,3,4,4,6] 2. Given a string. Return total number of times each character occurs in that string. 3. Explain Generators in Python. 4. How to create empty Pandas dataframe? Create dataframe using a dictionary. 5. Asked to rate myself in SQL, AWS (name the relevant services too). 6. Have you worked in ML, what kind of use cases? 7. Have you written class/object oriented or functional based programming ?

i got a call from Naukri, first round is written test having one coding and 20 django mcqs 2nd round is tech discussion on python ques are : 1) diff btw list and tuple 2) implement a decorator which will take a arguments 3) multi threading in python 4) a=[[]]*5 a[1].append(20) what is the output? 5)write SQL query to fetch 3rd highest salary 6) what is the django architecture and explain each component? 7) what are views and types of views 8) ques related to django middleware and custom middleware 2nd tech discussion round the interviewer was a senior architect ques are 1) student_result name, subject, department, mark get the second topper of each subject from each department 2) ques related to Django restframe work 3) what are the best practices to implement rest apis in django 4) how to authenticate and make a connection with SQL data base what are the best practices 5) write yml code to build a simple pipeline for a simple python based application deployment 6) how to write test cases in python 7) what is docker and ques related to docker file docker compose 8) experience in cloud 9) how to implement queues in redis
avatar

Python Developer

Interviewed at Tiger Analytics

4
Jan 31, 2025

i got a call from Naukri, first round is written test having one coding and 20 django mcqs 2nd round is tech discussion on python ques are : 1) diff btw list and tuple 2) implement a decorator which will take a arguments 3) multi threading in python 4) a=[[]]*5 a[1].append(20) what is the output? 5)write SQL query to fetch 3rd highest salary 6) what is the django architecture and explain each component? 7) what are views and types of views 8) ques related to django middleware and custom middleware 2nd tech discussion round the interviewer was a senior architect ques are 1) student_result name, subject, department, mark get the second topper of each subject from each department 2) ques related to Django restframe work 3) what are the best practices to implement rest apis in django 4) how to authenticate and make a connection with SQL data base what are the best practices 5) write yml code to build a simple pipeline for a simple python based application deployment 6) how to write test cases in python 7) what is docker and ques related to docker file docker compose 8) experience in cloud 9) how to implement queues in redis

More on Python, Programs, Inbuilt Data strucutres - various approaches for the same problem statement 2 nd round is very practical and in-depth. It was on Framework design, components like PyTest, Behave framework, Selenium explicit wait, REST API tokens, authentication, etc., Managerial discussion is behavioral round
avatar

Principal Software Engineer (Senior Python SDeT)

Interviewed at Accion Labs

3.9
Mar 18, 2021

More on Python, Programs, Inbuilt Data strucutres - various approaches for the same problem statement 2 nd round is very practical and in-depth. It was on Framework design, components like PyTest, Behave framework, Selenium explicit wait, REST API tokens, authentication, etc., Managerial discussion is behavioral round

Viewing 3481 - 3490 interview questions

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