Print the Pattern with One Line of Code | Python | 2022 |

Опубликовано: 24 Март 2026
на канале: One Line Code
286
36

In this video, you will learn how to print the Left Traingle Pattern using One Line of Code with Python.

Logic -

According to the pattern :
For every row, we need x stars (* ).

Note -

n = Number of total rows
x = Row Index number, like 0, 1, 2....,n


This pattern is based on space requirement between the stars. Some patterns don't require space between the stars, in that case replace the code with (*) instead of (* ).

---------------------------------------------------

Follow my Instagram account for more updates -

Instagram - @one.line.code
https://instagram.com/one.line.code?i...