Top 50 python Interview Questions
The most frequently asked python questions across all roles and companies, ranked by real interview frequency. Updated daily.
Reverse a string in Python using character traversal and return the reversed result.
CNA
Act Digital
Los Alamos National LaboratoryCount IP frequencies from log lines with a hash map and return the top 10 using sorting by count and lexicographic tie-break.
Render
Asana Spa
AkamaiCalculate averages for every fixed-size window in a price series using a sliding window in O(n) time.
Citadel
Capgemini
SnapSort a Python list in ascending order using the language's built-in sorting algorithm.
Nokia
Inc.
Inc. InNormalize a large document and create overlapping word chunks efficiently for vector embedding.
Adobe
Accenture
ClickUpReturn pre-order, in-order, and post-order traversals using one iterative stack-based traversal.
HashedIn by Deloitte
J.D. Power
HotstarImplement factorial for a non-negative integer using an iterative algorithm.
Alten Spain
Alten Delivery Centre Spain
ALTEN BelgiumImplement factorial for a non-negative integer using an iterative algorithm and handle the mathematical base case correctly.
Alten
Volkswagen Group ItaliaAALTEN MéxicoCount 0 and 1 sensor readings by Bosch building using a CTE, LEFT JOIN, and conditional aggregation.
Bosch Building TechnologiesSign up to see every question
Create a free account to unlock this list and practice real interview questions.