Printing Stars '*' in Right Triangle Shape | Mirror Image | Python Pattern Program

preview_player
Показать описание
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 Inverted Right Triangle Shape

#PythonPrograms #PatternProgram

You can Checkout:
Рекомендации по теме
Комментарии
Автор

Mem it's just osm thank u so much am searching this code on Google on YouTube but m not satisfied now this was osm keep it up u r too good mem

kanaksharma
Автор

Please make a video about string manipulation it will be easy to understand to me

kavinprabhu
Автор

Thank u so much for providing me with fun and enjoyable python programming project.

luminary
Автор

thank you so much, you're a lifesaver! your video explained the whole process, and it was very easy to follow along!!

sarahrosa
Автор

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)".

Krishnaveni-rfpp
Автор

after every star I need space but when i giving space after * the pattern in printing like a full pyramid

rishabjain
Автор

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 )

.

chandrakanth
Автор

way of teaching is very nice
I need help i want to space between start to start please explain

venkyroyal
Автор

thanks for code.. one more doubt how to get space between stars

abhia
welcome to shbcf.ru