Printing Stars "*" in Right Triangle Shape | Mirror Image | Python Pattern Program
Вставка
- Опубліковано 4 вер 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 ...
#PythonPrograms #PatternProgram
You can Checkout:
ProgramsAndMe
programsandme
Mem it's just osm thank u so much am searching this code on Google on UA-cam but m not satisfied now this was osm keep it up u r too good mem
Thanks a lot 😊
Thank u so much for providing me with fun and enjoyable python programming project.
Pleasure 😊
The best!!!
thank you so much, you're a lifesaver! your video explained the whole process, and it was very easy to follow along!!
Wah what an explanation ...thank you
first i would like to say thank you very much for explaining very clearly ...but there is a small mistake in that program,taht is ,in second for loop, end = "(space)".
after every star I need space but when i giving space after * the pattern in printing like a full pyramid
bro...have you got answer?
way of teaching is very nice
I need help i want to space between start to start please explain
thanks for code.. one more doubt how to get space between stars
Thank you very much
Pleasure 😊
You have a beautiful voice :)
Best ever seen
Thank you :)
Thank you 🙏 mam. Well said.
Thanq very much mam
Pleasure 😊
n = int(input()) # n = 5
for i in range(1,n+1): # loop runs from 1; 2 ; 3 ; 4 ; 5
spaces = (" " * (n-i) ) # space for 1st iteration is (n = 5 ) - ( i=1) so it will be 4 space
stars = ("* " * (i) ) # star for 1 st iteration is ( i ) so it is (1) so it will be 1 star
print(spaces + stars )
.
Got it❤️👍🏼
Thank you :)
Yen