Printing Stars "*" in Inverted Right Triangle Shape | Python Pattern Program
Вставка
- Опубліковано 15 вер 2024
- In this python programs video tutorial you will learn to print stars in right triangle shape in detail.
We used Nested for loops to write this program.
Printing Stars in Right Triangle Shape:
• Printing Stars "*" in ...
Printing Stars in Inverted Right Triangle Shape
• Printing Stars "*" in ...
Printing Stars in Right Triangle Shape {mirror image}
• Printing Stars "*" in ...
#PythonPrograms #PatternProgram
You can Checkout:
ProgramsAndMe
programsandme
Thanks a lot, really helped me a lot to understand it🙂
I am so thankful to you mam😊😊
Good explanation
Thank you 🙏 mam.
Nice 👍
please explain the same pattern for hollow type also.
End of the for loop u have write or not
we should write
how to add spaces btw the stars
N = int(input())
for row in range(N):
for space in range(row):
print(" ", end="")
for space in range(N - row):
print("* ", end="")
print()
In line 4 between the quote" ", give the space twice. Then you will get the space between the stars.
give me tips to solve this
_____
| /
| /
| /
| /
|/ given number is 5