14. Program to print the following pattern in python :
# # # # # # #
#. #
#. #
#. #
#. #
#. #
#. #
#. #
#. #
#. #
#. #
# # # # # # #
Answers
Answered by
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
English,
1 month ago
Business Studies,
1 month ago
Math,
1 month ago
History,
3 months ago
Science,
3 months ago
Math,
10 months ago
Social Sciences,
10 months ago
Computer Science,
10 months ago