Write a program of hollow square pattern in python - Hollow Square Pattern program in python - Python Programs - Pattern programs in python Posted by Vivek Bhardwaj Saturday, March 18, 2023 Get link Facebook X Pinterest Email Other Apps Hollow Square PatternOutput****** ** ** ******Python Code:# hollow square patternn = 5for i in range(n): for j in range(n): if i == 0 or i == n - 1 or j == 0 or j == n - 1: print('*', end='') else: print(' ', end='') print('')Here is the Practical of the above program in Jupyter Notebook Comments
Comments
Post a Comment