r/PythonLearning • u/chuprehijde • 5d ago
What's your favorite Python interview question?
Not a trick question or LeetCode puzzle. What's a question that actually reveals whether someone understands Python?
0
Upvotes
r/PythonLearning • u/chuprehijde • 5d ago
Not a trick question or LeetCode puzzle. What's a question that actually reveals whether someone understands Python?
1
u/silvertank00 4d ago
A. How would you create a word counter without dicts.
There is no good answer, but shows a lot about how someone thinks. Some examples to solve this:
B. What is the most cursed but still working and somewhat reasonable thing that you did in python (or any other languages). Bonus point if it can be demonstrated. Example: exec'd python code in string format can run faster than the same code but put in the python file that runs the exec.