Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edited input line of code #2085

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Patterns/pattern1.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#1

def main():
lines = int(input("Enter no.of lines: "))
pattern(lines)
pattern(int(input("Enter no.of lines: ")))

def pattern(lines):
m = lines + 1
Expand Down
3 changes: 1 addition & 2 deletions Patterns/pattern2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@


def main():
lines = int(input("Enter no.of lines: "))
pattern(lines)
pattern(int(input("Enter no.of lines: ")))

def pattern(lines):
for i in range(lines,0,-1):
Expand Down
3 changes: 1 addition & 2 deletions Patterns/pattern3.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@


def main():
lines = int(input("Enter no.of lines: "))
pattern(lines)
pattern(int(input("Enter no.of lines: ")))

def pattern(lines):
t = 1
Expand Down
3 changes: 1 addition & 2 deletions Patterns/pattern5.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
#54321

def main():
lines = int(input("Enter the number of lines: "))
pattern(lines)
pattern(int(input("Enter the number of lines: ")))

def pattern(rows):
for i in range(1, rows+1):
Expand Down
3 changes: 1 addition & 2 deletions Patterns/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
# *

def main():
lines = int(input("Enter no.of lines: "))
pattern(lines)
pattern(int(input("Enter no.of lines: ")))

def pattern(lines):
for i in range(lines):
Expand Down