Python Program to Print Pattern Pyramid with Stars Part-1

preview_player
Показать описание
Hi,

In this video I explained about Python Program to Print Pattern Pyramid with Stars using Iteration (For loop)

Python Scripts
======================

Python Functions Solved
==========================

Python Programs Solved
============================

The program loops until n and print the pattern, you can modify the program to print pyramid i.e, equilateral triangle or right angled triangle.

Below is the program
===========================
n = 12
space = " "
star = "* "

for x in range(0,n):
print( (n - x) * space + x * star )

Thank you for watching my videos, please subscribe to my channel for more python related videos.
Рекомендации по теме