Learn Python For Loop using patterns
A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).
This is less like for the keyword in other programming languages and works more like an iterator method as found in other object-orientated programming languages.
Get Mritunjay Singh’s stories in your inbox
Join Medium for free to get updates from this writer.
Square
Increasing Triangle
Decreasing Triangle
Hill Pattern
Reverse Hill Pattern
Diamond
Arrow Tip
Misc. 1
Misc. 2
Hope you enjoyed the article.
Stay tuned, many more to be published…
Cheers!!





