In a previous tutorial, we covered the basics of Python for loops, looking at how to iterate through lists and lists of lists.But there’s a lot more to for loops than looping through lists, and in real-world data science work, you may want to use for loops with other data structures, including numpy arrays and pandas DataFrames. Python Programming Server Side Programming. By now you probably have defined your functions using the def keyword, and it has worked well for you so far. In Python, there is not C like syntax for(i=0; i