blob: 3212851f576ef57fe18e2ede91f1ac9814fc34c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
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)
|