Python programming codes
43 subscribers
25 photos
1 video
83 files
82 links
Uploading All programming codes are updating Daily
ask doubts in comment box 🎁☑️
Download Telegram
#nested_loop_example_1 :
""" To print all rows and columns equals with star pattren

i is row and j is column"""

#method_1
for i in range(1,6):
for j in range(1,6):
print("*",end=" ")
print()

print()

#method_2
for i in range(5):
print("* "*5)
#nested_loop_example_3 :
""" To print reverse all columns and rows - 1 with star pattren

i is row and j is column"""

#method_1


#method_2 (shortcut method)
for i in range(5):
print(" "*i,"* "*(5-i))
#nested_loop_example_4 :
""" To print left half pyramid with star pattren program

i is row and j is column"""

#method_1


#method_2 (shortcut method)
n = int(input("Enter the value: "))
for i in range(n):
print(" "*(n-(i+1)),"* "*(i+1))