Hallow rect angle
def print_rectangle(n, m) :
for i in range(1, n+1) :
for j in range(1, m+1) :
if (i == 1 or i == n or
j == 1 or j == m) :
print("*", end="")
else :
print(" ", end="")
print()
# Driver program for above function
rows = 6
columns = 20
print_rectangle(rows, columns)
Comments
Leave a comment