TCS interview question

Python basic questions regarding loops