Skip to content

Commit e3864a0

Browse files
YouTubeYouTube
authored andcommitted
Up to part 16
1 parent 6da92a9 commit e3864a0

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

functions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ def multiply():
66

77
def cube():
88
return 2 ** 3
9+
10+
def square_area(side_length=4):
11+
area = side_length * 2
12+
return area
13+
14+
def rectangle_perimeter(width, height):
15+
perimeter = width * 2 + height * 2
16+
return perimeter

scope.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
x = "John"
3+
4+
5+
def scope(x):
6+
7+
print(x)
8+
9+
scope(x)

0 commit comments

Comments
 (0)