Code 114: Mirrored Hollow Right Triangular Star Pattern | Star patterns Python | 365 days of Code

Published: 06 May 2021
on channel: Code House
526
3

Title - Mirrored 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-1):
print(" ", end="")
for k in range(i+1):
if k==0 or k==i or i==(n-1):
print("*", end="")
else:
print(" ", end="")
print()

Thanks


On this page of the site you can watch the video online Code 114: Mirrored Hollow Right Triangular Star Pattern | Star patterns Python | 365 days of Code with a duration of hours minute second in good quality, which was uploaded by the user Code House 06 May 2021, share the link with friends and acquaintances, this video has already been watched 526 times on youtube and it was liked by 3 viewers. Enjoy your viewing!