Argusoft Interview Question

For loop implementation in python and c