Python Engineer Interview Questions

6,409 python engineer interview questions shared by candidates

4. If I have 4 .py files in a python package, can I import one of them in the other 3? 5. If i have a block of code in __init__.py of the package, when will this code be executed when i execute a .py file in that package? 6. OOPS concepts
avatar

Python Development Engineer

Interviewed at Calsoft

4.3
Jun 8, 2017

4. If I have 4 .py files in a python package, can I import one of them in the other 3? 5. If i have a block of code in __init__.py of the package, when will this code be executed when i execute a .py file in that package? 6. OOPS concepts

There are 3n piles of coins of varying size, you and your friends will take piles of coins as follows: In each step, you will choose any 3 piles of coins (not necessarily consecutive). -Of your choice, Alice will pick the pile with the maximum number of coins. -You will pick the next pile with the maximum number of coins. -Your friend Bob will pick the last pile. -Repeat until there are no more piles of coins. -Given an array of integers piles where piles[i] is the number of coins in the ith pile.
avatar

Python Developer

Interviewed at Solytics Partners

3.6
Dec 1, 2023

There are 3n piles of coins of varying size, you and your friends will take piles of coins as follows: In each step, you will choose any 3 piles of coins (not necessarily consecutive). -Of your choice, Alice will pick the pile with the maximum number of coins. -You will pick the next pile with the maximum number of coins. -Your friend Bob will pick the last pile. -Repeat until there are no more piles of coins. -Given an array of integers piles where piles[i] is the number of coins in the ith pile.

Viewing 2691 - 2700 interview questions

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