Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update 10_functions_exercise.py
  • Loading branch information
Mohamed66Adel authored Jul 28, 2024
commit 655bdde7b9daebc2fc58def19e062f1a981819d9
2 changes: 1 addition & 1 deletion Basics/Exercise/10_functions/10_functions_exercise.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def print_pattern(n=5):
:return: None
'''
# we need to run one for loops. Outer loop prints patterns line by line
for i in range(n):
for i in range(1, n+1):
print('*' * i)

def calculate_area(dimension1,dimension2,shape="triangle"):
Expand Down