Square Patterns in python Leave a Comment / Python Programs / By brcinstitute111@gmail.com View All Python Programs Square Pattern Type-1 (Source Code) for x in range(1,5): for y in range(1,5): print(“*”,end=” “) print(“”) Output * * * ** * * ** * * ** * * * Square Pattern Type-2 (Source Code) for x in range(1,5): for y in range(1,5): print(x,end=” “) print(“”) Output 1 1 1 12 2 2 23 3 3 34 4 4 4 Square Pattern Type-3 (Source Code) for x in range(1,5): for y in range(1,5): print(y,end=” “) print(“”) Output 1 2 3 41 2 3 41 2 3 41 2 3 4 View All Python Programs