Unable to build teal files for looping conditions

Welcome to Algorand @shivam!

For the community to be able to help you, could you please give a minimum example that creates the issue?

Have you looked at Control Flow — PyTeal documentation