filmov
tv
How to Make Star pattern in Python | n - Numbers of lines | Code in Description #python#starpattern

Показать описание
In this video, I have talked about the How to Make a Star pattern in python. This video will make it clear for you when to learn Star Pattern Using Python
Code :
'''
Here We write a program to print star pattern as follows
*
**
***
****
*****
'''
n = int(input( " Enter the number of lines:"))
for i in range(0,n):
for j in range(0,i+1):
print("*", end="")
print()
► My Favorite Python Books
#Python, #MachineLearning, #WebDevelopment
⭐️ Contents ⭐
⌨️ (0:00) What we do?
⌨️ (1:18) Output
Code :
'''
Here We write a program to print star pattern as follows
*
**
***
****
*****
'''
n = int(input( " Enter the number of lines:"))
for i in range(0,n):
for j in range(0,i+1):
print("*", end="")
print()
► My Favorite Python Books
#Python, #MachineLearning, #WebDevelopment
⭐️ Contents ⭐
⌨️ (0:00) What we do?
⌨️ (1:18) Output