filmov
tv
Code 116: Inverted Hollow Right Triangular Star Pattern | Star patterns Python | 365 days of Code
Показать описание
Title - Inverted Hollow Right Triangular Star Pattern
Write a Python Program to display star pattern like this:
*****
* *
* *
**
*
"""
n = int(input())
for i in range(n):
for j in range(n-i):
if j==0 or i==0 or j==(n-i-1):
print("*", end="")
else:
print(" ", end="")
print()
# Thanks
Write a Python Program to display star pattern like this:
*****
* *
* *
**
*
"""
n = int(input())
for i in range(n):
for j in range(n-i):
if j==0 or i==0 or j==(n-i-1):
print("*", end="")
else:
print(" ", end="")
print()
# Thanks