UBS interview question

Blocks of code in python and the expected outcome