Google Python Interview Questions 2026
Published July 22, 2026 · Updated July 22, 2026
5 real Python interview questions asked at Google. Upvoted by engineers who cleared the loop. Covers Technical, Scenario rounds.
5 questions
220 engineers asked
369 upvotes
Company: Google
Technology: Python
All Python Questions Asked at Google
Google
Medium
Technical round
JavaC++Python
Given a binary tree, return the boundary of the tree in anti-clockwise direction starting from the root. The boundary consists of the left boundary, leaves, and the right boundary in reverse.
↑ 96 upvotes · 31 engineers asked this · SDE2
Google
Hard
Technical round
JavaPythonGo
Implement a topological sort for a directed acyclic graph. Then extend it to detect cycles and explain how this maps to dependency resolution in build systems like Bazel.
↑ 61 upvotes · 38 engineers asked this · SDE2
Google
Medium
Technical round
JavaPythonC++
Given a list of intervals, merge all overlapping intervals and return the result.
Explain the sort-then-scan approach and the edge cases (touching intervals, single interval, all disjoint).
↑ 67 upvotes · 43 engineers asked this · SDE1
Google
Hard
Scenario round
5–8 YearsLLMRAGPython
Our RAG pipeline responses are accurate in staging but hallucinate in production on long user queries. Walk me through how you debug and fix this.
↑ 112 upvotes · 89 engineers asked this · AI Engineer
Google
Medium
Technical round
2-5 yearsPython
You have a 50GB CSV file and only 8GB of RAM. Walk through how you would compute the average of one column using pandas without crashing the process.
↑ 33 upvotes · 19 engineers asked this · Data Scientist
Practice these questions with AI feedback
Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.
Build my study plan →
More Google Questions
Python Questions at Other Companies
Browse by company
Frequently asked questions
Given a binary tree, return the boundary of the tree in anti-clockwise direction starting from the root. The boundary consists of the left boundary, leaves, and the right boundary in reverse.
Given a binary tree, return the boundary of the tree in anti-clockwise direction starting from the root. The boundary consists of the left boundary, leaves, and the right boundary in reverse.
Implement a topological sort for a directed acyclic graph. Then extend it to detect cycles and explain how this maps to dependency resolution in build systems like Bazel.
Implement a topological sort for a directed acyclic graph. Then extend it to detect cycles and explain how this maps to dependency resolution in build systems like Bazel.
Given a list of intervals, merge all overlapping intervals and return the result.
Given a list of intervals, merge all overlapping intervals and return the result.
Explain the sort-then-scan approach and the edge cases (touching intervals, single interval, all disjoint).
Our RAG pipeline responses are accurate in staging but hallucinate in production on long user queries. Walk me through how you debug and fix this.
Our RAG pipeline responses are accurate in staging but hallucinate in production on long user queries. Walk me through how you debug and fix this.
You have a 50GB CSV file and only 8GB of RAM. Walk through how you would compute the average of one column using pandas without crashing the process.
You have a 50GB CSV file and only 8GB of RAM. Walk through how you would compute the average of one column using pandas without crashing the process.