Basic interview questions in Python