From 892d18ad00df77a694f9f6f6cd83428a6a0b8f39 Mon Sep 17 00:00:00 2001 From: Sam Zeitlin Date: Mon, 27 Apr 2015 16:02:31 -0700 Subject: [PATCH] added a few more questions --- README.mkd | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.mkd b/README.mkd index d0f91de..fb97feb 100644 --- a/README.mkd +++ b/README.mkd @@ -18,7 +18,7 @@ these questions for the same candidate. 1. How do you create a dictionary? -## Intermediate Questions +## Intermediate/Advanced Questions 1. How can you improve the following code? @@ -46,7 +46,19 @@ these questions for the same candidate. 1. What is a generator? What can it be used for? -## Advanced +1. How do you reverse a list? Can you come up with at least three ways? + +1. How would you merge two sorted lists? They can be any length, or empty. + +1. How would you count the lines in a file? How would you do it if the file was too big to hold in memory? 1. What are bindings, i.e., what does it mean for a value to be bound to a variable? + +1. What happens if you have an error in an __init__ statement? + +1. What is inheritance? + +1. What happens in python if you try to divide by zero? + +1.