Printing Patterns in Python | Print stars '*' in Right Angled Triangle Shape | Star Patterns

Опубликовано: 10 Октябрь 2024
на канале: Rishabh Narayan
382
9

#Python #Programming #Pattern

Hello Guys,
In this video, you are going to learn that how you can print star patterns '*' in Python in a shape of right angled triangle.

Code Used in the Video :

n = int(input("Enter the no. of rows :"))
for i in range(1, n + 1):
for j in range(1, i + 1):
print('*', end = ' ')
print()

Editor Used : Visual Studio Code
Download Visual Studio Code : https://code.visualstudio.com/
Installation Tutorial (VS Code) :    • How to Download and Install Visual St...  

Follow me on Instagram (@ri5h46h) :   / ri5h46h  

Follow me on Twitter (@explorishabh) :   / explorishabh