Sitemap
Mritunjay Singh

Mritunjay Singh

Learn Python For Loop using patterns

Mar 3, 2023

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

Press enter or click to view image in full size

Hill Pattern

Press enter or click to view image in full size

Reverse Hill Pattern

Diamond

Press enter or click to view image in full size

Arrow Tip

Press enter or click to view image in full size

Misc. 1

Press enter or click to view image in full size

Misc. 2

Press enter or click to view image in full size

Hope you enjoyed the article.

Stay tuned, many more to be published…

Cheers!!

--

--