Skip to content

Commit 8a37fec

Browse files
authored
Update Day_13.md
1 parent 258c1c7 commit 8a37fec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Status/Day_13.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ print aCircle.area()
2525
----------------
2626
**My Solution: Python 3**
2727
```
28+
class Circle():
29+
def __init__(self,r):
30+
self.radius = r
31+
32+
def area(self):
33+
return 3.1416*(self.radius**2)
34+
35+
36+
circle = Circle(5)
37+
print(circle.area())
2838
```
2939
----------------
3040

0 commit comments

Comments
 (0)