Python Programmer Interview Questions

6,382 python programmer interview questions shared by candidates

Started with basic questions like wt all libraries u used in ML, what projects u did name some , what type of Algorithms u used there, how u solved it in steps, wt u do if there is a Nan value, how to get starting 5 rows and columns in ML's dataset, wt to do if u want to drop a column . Then started with basic python questions like wt is list how to write it , wt is tuples, dictionary, wt is lambda ...etc
avatar

Python Developer

Interviewed at CGI

3.7
Feb 28, 2022

Started with basic questions like wt all libraries u used in ML, what projects u did name some , what type of Algorithms u used there, how u solved it in steps, wt u do if there is a Nan value, how to get starting 5 rows and columns in ML's dataset, wt to do if u want to drop a column . Then started with basic python questions like wt is list how to write it , wt is tuples, dictionary, wt is lambda ...etc

In L1->4 sum array question arr=[2,4,3,5,6,1,0] target=10 something like this. In L2-> asked to right a user auth api and use it in the endpoint (i used Depends from fastAPI) and another coding question was about parenthesis match is_valid_parenthesis([({})]) #TRUE. React question- useLayoutEffect vs useEffect, useMemo, useCallback. js- output based js question related to event loop priority like promise vs setTimeout vs console.log use chatGPT it will give you the exact question. GenAi- which model i have used like GPT-4o similar like this try to read about the Transformer how it works. sql- A 1 1 1 1 1 B 1 1 1 1 what will be the inner join left join right join and full outer join. you need to be prepared i lost my chance. Please don't do the same. Try to explain the code you write.
avatar

Python Full Stack Developer

Interviewed at UST

3.8
Jun 3, 2025

In L1->4 sum array question arr=[2,4,3,5,6,1,0] target=10 something like this. In L2-> asked to right a user auth api and use it in the endpoint (i used Depends from fastAPI) and another coding question was about parenthesis match is_valid_parenthesis([({})]) #TRUE. React question- useLayoutEffect vs useEffect, useMemo, useCallback. js- output based js question related to event loop priority like promise vs setTimeout vs console.log use chatGPT it will give you the exact question. GenAi- which model i have used like GPT-4o similar like this try to read about the Transformer how it works. sql- A 1 1 1 1 1 B 1 1 1 1 what will be the inner join left join right join and full outer join. you need to be prepared i lost my chance. Please don't do the same. Try to explain the code you write.

In my interview, one key question they asked me was about my experience with automation frameworks — specifically, how I’ve implemented Selenium with Pytest in my past projects and integrated it into a CI/CD pipeline.
avatar

Python Automation Engineer

Interviewed at EY

3.7
Aug 11, 2025

In my interview, one key question they asked me was about my experience with automation frameworks — specifically, how I’ve implemented Selenium with Pytest in my past projects and integrated it into a CI/CD pipeline.

Viewing 6291 - 6300 interview questions

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