Python In Hindi 27
Star Patterns *
***
*****
*******
* * * ********* *********
** ** *** ******* *******
*** *** ***** ***** *****
**** **** ******* *** ***
***** ***** ********* * *
The CS Pundit
Right Angled Triangle
for i in range(5): Output :
for j in range(i+1): *
**
print('*', end='')
***
print() ****
*****
Youtube Channel : @TheCSPundit
https://youtu.be/3Mwv_tUp6WQ
Telegram Channel : @TheCSPundit
Left Angled Triangle
* Left Angled Right Angled
* *
* *
** **
* * * *** ***
**** ****
* * * *
***** *****
* * * * *
Left Angled Triangle
for i in range(5): Output :
for k in range(4-i): *
print(' ',end='') **
***
for j in range(i+1):
****
print('*', end='') *****
print()
Pyramid Shape
for i in range(5): Output :
for k in range(4-i): *
***
print(' ',end='') *****
for j in range(i+1+i): *******
print('*', end='') *********
print()
Inverted Pyramid Shape
for i in range(4,-1,-1): Output :
for k in range(4-i): *********
*******
print(' ',end='') *****
for j in range(i+1+i): ***
print('*', end='') *
print()
for i in range(5): Diamond Shape
for k in range(4-i): Output :
print(' ',end='')
for j in range(i+1+i):
*
print('*', end='') ***
print() *****
for i in range(3,-1,-1): *******
for k in range(4-i): *********
print(' ',end='') *******
for j in range(i+1+i): *****
print('*', end='') ***
print() *
Thank You
Join Telegram Channel For Free PDFs & PPTs
Telegram Channel : https://t.me/TheCSPundit