Computer Science, asked by salechavarsha416, 7 hours ago

14. Program to print the following pattern in python :
# # # # # # #
#. #
#. #
#. #
#. #
#. #
#. #
#. #
#. #
#. #
#. #
# # # # # # #​

Answers

Answered by richitha77
2

Explanation:

n=int(input())

for i in range(1,n+1):

for j in range(1,8):

if(i==1 or i==n or j==2):

print("#",end=" ")

elif(j==1 and i! =1 and i!=n) :

print("#.",end="")

print()

Attachments:
Similar questions