filmov
tv
Pyramid Pattern printing in python #python #pythonprogramming #coding #pythonforbeginners #v #shorts

Показать описание
In this video we're going to create a program that take input from user as " enter no. of rows: " number of rows= number of lines of " * " for first line only one * will be printed for 2nd line 3 * will be printed and so on number of * printing increased by 2 in each line from previous line. If we talking about number of rows= 5 then in this case for first line 4 tab space should be there for 2nd line 3 tab space should be there and so on decreased by -1 in each row so for that we have to apply loop " while loop " in such a way so that it print space as mentioned above. Next loop is for * printing for that we have to apply loop " while loop " in such a way so that it print * as in first row no. Of star=1 in 2nd row no. Of star=3 and so on , and there is a parent loop also which is for run the child loop no. Of times as user enters no. Of row=5
#python #coding #pythonforbeginners #pythontutorial #learnpython #learn
#python #coding #pythonforbeginners #pythontutorial #learnpython #learn