Argusoft interview question

For loop implementation in python and c