Pythonic Loops — When I see a code snippet like the following, that's an example of someone trying to write python like its C. You can argue whats is it exactly that makes it unpythonic. there are two reasons for it: It keeps track of index ‘i’ manually. It uses len function to…