Python Pattern Program #1

Python Pattern Program #1

  • In this program, we will try to print the square pattern using any value (It can be numeric, character, etc.) 
  • Here is how it looks. 

Source Code:

n=int(input("Enter the number of rows: "))
for i in range(1,n+1):
      print("* "*n)


 

Comments