Inverted Pyramid | Equilateral Triangle | One Line Code | Python | 2022 |

Опубликовано: 01 Август 2022
на канале: One Line Code
166
10

In this video, you will learn how to print an Inverted Pyramid Pattern using One Line of Code in Python.

Logic -

According to the pattern :
1. For every row, we need (x-1) spaces before the stars (*)
2. For every row, we need (n-x+1) 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...


На этой странице сайта вы можете посмотреть видео онлайн Inverted Pyramid | Equilateral Triangle | One Line Code | Python | 2022 | длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь One Line Code 01 Август 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 166 раз и оно понравилось 10 зрителям. Приятного просмотра!