Cognizant Interview Question

I was asked to figure out what would the output of few python code snippets