8000 Updated answer for question 2 · uceimmp/python@557f88f · GitHub
[go: up one dir, main page]

Skip to content

Commit 557f88f

Browse files
committed
Updated answer for question 2
1 parent c9fa117 commit 557f88f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

session_10/answers/A2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ def __init__(self, radius):
1010
self.radius = radius
1111

1212
def get_area(self):
13-
print(round(self.pi * (self.radius ** 2), 2))
13+
print("Area: " + str(round(self.pi * (self.radius ** 2), 2)))
1414

1515
def get_circumference(self):
16-
print(round(self.pi * (self.radius * 2), 2))
16+
print("Circumference: " + str(round(self.pi * (self.radius * 2), 2)))
1717

1818
circle1 = Circle(9)
1919
circle1.get_area()

0 commit comments

Comments
 (0)
0