Skip to content

Commit 348ae05

Browse files
Daksh JainDaksh Jain
authored andcommitted
create star pattern for any number of rows
1 parent 7e340f5 commit 348ae05

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,6 @@ server.py - Creates a local server on your LAN for receiving and sending message
5454

5555
## Script 11 - Wallpaper Changer
5656
Automatically change home wallpaper adding a random quote and stock tickers on it
57+
58+
## Script 12 - Star Pattern
59+
Create a star pattern pyramid

Star Pattern/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This repository consists of a list of python scripts to automate few tasks.
2+
3+
You can contribute by adding more python scripts which can be used to automate things. Some of already done are listed below.
4+
Incase you have anything to be followed while executing the python script mention it as well
5+
6+
7+
# Python Script
8+
9+
## Script - Star Pattern
10+
11+
Code to create star pattern
12+
starPattern.py
13+

Star Pattern/starPattern.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def starPattern(n):
2+
for i in range(1, n+1):
3+
for j in range(1, i+1):
4+
print("* ", end="")
5+
print()
6+
7+
8+
n = int(input("Enter the number of rows: "))
9+
starPattern(n)
10+

0 commit comments

Comments
 (0)