Pregunta de entrevista de JPMorganChase

Basic python questions, some simple braim teasers.