How to print Diamond shaped star '*' pattern using python | python tutorial for beginners

preview_player
Показать описание
#python #programming #pattern #program #tutorial #beginners
How to print Diamond shaped star "*" pattern using python | python tutorial for beginners

like, share and subscribe
Рекомендации по теме
Комментарии
Автор

nice tutorial. loved this tutorial.Keep Up

Shivansh_Godiyal
Автор

Thank you so much....your explanation is very simple and clear

newworld
Автор

thanks for video, your explanations is very good and its helped me a lot

Taylove
Автор

thanks bro u helped a lot in my project

swastikagond
Автор

Complete pattern programs playlist :
Please do subscribe it really helps me to make a lot of informative content for you guys! And also thank you for watching 😊

TycomacCodes
Автор

Hey folks, If you find the code in the video little difficult to understand here is a little bit simplified code it works exactly the same, feel free to use this one as well.
Alternate Program :
num = int(input("enter the number of rows: "))

for i in range(1, num+1):
print(" "*(num-i)+"* "*i)

for j in range(num-1, 0, -1):
print(" "*(num-j)+"* "*j)

TycomacCodes
Автор

Bhai you explain very easy and I got easly understand ❤❤ love you bhai

babamusic
Автор

why in next iterator you put for j in range (row-1) what is the difference between it and (row ) in first loop?

dalalmh
Автор

Thank you very much bro. It helped me for my practical file

Vijay_helo
Автор

Sir,
How should I write a program that prints two diamonds side by side based on the number entered from the user? Good explanation, Keep it up :)

abhiveer
Автор

Como se modificaría este programa para que salga impar
*
***

***
*

emilianogarcia
Автор

I got this pattern without print() after loop, side by side but here without writing print() how he got printed in the next line

konkimallakalyani
Автор

I want to ask you to fix my python code, change from square structure to triangle, thank you, you send me email, I will send the program code

dungnguyentrong