summary refs log tree commit diff stats
path: root/python/code/07_hstarpat.py
diff options
context:
space:
mode:
authorSudipto Mallick <smlckz@termux-alpine>2024-01-13 09:28:10 +0530
committerSudipto Mallick <smlckz@termux-alpine>2024-01-13 09:28:10 +0530
commit8fb719f58f91d1f1f187a1db974682fb3736ee05 (patch)
tree506e070c7900cc5e3fb31000dbd1a39e95809c61 /python/code/07_hstarpat.py
parent53d75846cc95a3af5d90c01b5ef010818b4adcf7 (diff)
downloadzadania-8fb719f58f91d1f1f187a1db974682fb3736ee05.tar.gz
Changes to project structure of Python assignments
As was directed to remove assignments.
Diffstat (limited to 'python/code/07_hstarpat.py')
-rw-r--r--python/code/07_hstarpat.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/code/07_hstarpat.py b/python/code/07_hstarpat.py
new file mode 100644
index 0000000..3212851
--- /dev/null
+++ b/python/code/07_hstarpat.py
@@ -0,0 +1,9 @@
+size = int(input('Enter pattern size: '))
+if size < 0:
+    print('Invalid size')
+else:
+    print('*' * size)
+    for i in range(size - 2):
+        print('*' + ' ' * (size - 2) + '*')
+    if size > 1:
+        print('*' * size)
on' href='/akspecs/ranger/blame/ranger.py?h=v1.9.1&id=9dc6fe07975ef2d489e5071f4e6d7223a33cb3b3'>^
3de15ddd ^

3d566884 ^
a1d7ed6e ^
3d566884 ^
f8e96a97 ^
465bff73 ^





f027adc0 ^
f8e96a97 ^

0b5c4cbe ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36