We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02b11f commit 479a2d1Copy full SHA for 479a2d1
pattern2.py
@@ -0,0 +1,28 @@
1
+#pattern
2
+#$$$$$$$$$$$
3
+# $$$$$$$$$
4
+# $$$$$$$
5
+# $$$$$
6
+# $$$
7
+# $
8
+
9
10
11
+def main():
12
+ lines = int(input("Enter no.of lines: "))
13
+ pattern(lines)
14
15
+def pattern(lines):
16
+ t = 0
17
+ m = lines + 1
18
+ for i in reversed(range(lines+1)):
19
+ pattern = "@"*(m)
20
+ format = " "*t
21
+ t = t + 1
22
+ print(format + pattern)
23
+ m = m -2
24
+ if m <= 0:
25
+ exit()
26
27
+if __name__ == "__main__":
28
+ main()
0 commit comments