Ad

 10 Best Practices For PYTHON PATTERN PROGRAMS :

You Will Thank Us - 10 Tips About PYTHON PATTERN PROGRAMS You Need To Know . 10 Lessons About PYTHON PATTERN PROGRAMS You Need To Learn To Succeed.

PYTHON PATTERN PROGRAMS


 

rows = 5
     for i in range(rows, 0, -1):
     num = i
     for j in range(0, i):
     print(num, end=’ ‘)
     print(“\r”)


Output--

5 5 5 5 5 
4 4 4 4 
3 3 3 
2 2 
1


Half Pyramid Pattern of Numbers


rows = 5


for row in range(1, rows+1):


  for column in range(1, row + 1):


  print(column, end=’ ‘)


    print(“”)


Output--


1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

🔖Tags --

Python Pattern Programs,pattern program in python,patterns in python, star pattern in python, python pattern programs pdf, pattern programs in python using while loop, python pattern programs examples


Post a Comment

Previous Post Next Post