We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed685ea commit d5ab4feCopy full SHA for d5ab4fe
pattern/Heart pattern in python
@@ -1 +1,8 @@
1
-
+n = 6
2
+for row in range(0,n):
3
+ for col in range(0, n+1):
4
+ if(row==0 and col%3!=0) or (row==1 and col%3==0) or (row-col==2 ) or (row+col==8):
5
+ print('*', end=' ')
6
+ else:
7
+ print(' ' ,end = ' ')
8
+ print()
0 commit comments