{"id":6220,"date":"2023-10-30T11:44:25","date_gmt":"2023-10-30T06:14:25","guid":{"rendered":"https:\/\/python-programs.com\/?p=6220"},"modified":"2023-11-10T12:07:56","modified_gmt":"2023-11-10T06:37:56","slug":"python-for-loop-explained-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-for-loop-explained-with-examples\/","title":{"rendered":"Python: For Loop \u2013 Explained with Examples"},"content":{"rendered":"

For Loop:<\/strong><\/p>\n

A for loop is used to iterate through a series (that is either a list, a tuple, a dictionary, a set, or a string).
\nThis functions more like an iterator method in other object-oriented programming languages than the for keyword in other programming languages.<\/p>\n

The for loop allows one to execute a series of statements once for each item in a list, tuple, set, and so on.<\/p>\n

For Loop in Python<\/h2>\n