JPMorganChase interview question

Basic python questions, some simple braim teasers.