Python Interview Questions

6,411 python interview questions shared by candidates

Worst company interview I have ever given. 1- hr is rude, he was treating us badly. 2- other hr person are also irresponsible, No one cares about your assignment and don't even look into that. 3- interview thinks himself some kind of genius so he won't care about you what you are saying. 4- I would suggest please don't go for this companies interview . I have talked with so many candidates and everyone was saying the same thing. 1/5 rating. Pure waste of my time while giving the interview of this company.
avatar

Python and Machine Learning Engineer

Interviewed at Trantor

4.1
Sep 29, 2019

Worst company interview I have ever given. 1- hr is rude, he was treating us badly. 2- other hr person are also irresponsible, No one cares about your assignment and don't even look into that. 3- interview thinks himself some kind of genius so he won't care about you what you are saying. 4- I would suggest please don't go for this companies interview . I have talked with so many candidates and everyone was saying the same thing. 1/5 rating. Pure waste of my time while giving the interview of this company.

What are the differences between Python 2 and Python 3? Explain the differences between lists and tuples in Python. How do you handle exceptions in Python? Provide an example. Write a function to reverse a string in Python.

Python Intern

Interviewed at Makerobos Innovation Labs

2.6
Jun 18, 2024

What are the differences between Python 2 and Python 3? Explain the differences between lists and tuples in Python. How do you handle exceptions in Python? Provide an example. Write a function to reverse a string in Python.

Here are the summarized coding challenge questions (which, in my perspective, lack meaningfulness): Create a Python script that reads a text file and identifies the four largest lexicographically non-overlapping substrings that meet certain conditions. These conditions include that the substrings must be contained within a single line, consist of strictly alphanumeric characters, and have a length of five characters. For each of these substrings, compute a pair representing its position: the line number in the file and the starting index within that line. Treat these four pairs as points in a Cartesian plane and calculate the area and perimeter of the quadrilateral formed by them. Replace these four locations in an output text file with underscores and design appropriate test cases.
avatar

Software Engineer Python

Interviewed at Asaphus Vision

3
Aug 14, 2023

Here are the summarized coding challenge questions (which, in my perspective, lack meaningfulness): Create a Python script that reads a text file and identifies the four largest lexicographically non-overlapping substrings that meet certain conditions. These conditions include that the substrings must be contained within a single line, consist of strictly alphanumeric characters, and have a length of five characters. For each of these substrings, compute a pair representing its position: the line number in the file and the starting index within that line. Treat these four pairs as points in a Cartesian plane and calculate the area and perimeter of the quadrilateral formed by them. Replace these four locations in an output text file with underscores and design appropriate test cases.

Viewing 3321 - 3330 interview questions

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