Home
Flutter
Python
Android
ReactNative
C Tutorial
Q & A
Quiz
Forum
Kotlin
Java
Ruby
Source Code
Dart
Widget Catlog
Write For Us
DevOps
Vocabulary
Tutorials
Git
Jobs
XApk
DevOps
Blog
Sitemap
SubScribe
Python program to print * Pattern 78
Python Code
Copy Code
size
=
4
for
x
in
range
(
size
, -(
size
+
1
), -
1
):
for
y
in
range
(
1
,
abs
(
x
) +
1
):
print
(
" "
,
end
=
""
)
p
=
1
for
z
in
range
(
size
,
abs
(
x
) -
1
, -
1
):
print
(
str
(
p
) +
" "
,
end
=
""
)
p
+=
1
print
()
Output:
Run Python Online