Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekkrsk authored Feb 16, 2022
1 parent bd06890 commit 2e0c3fb
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions circle.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
import turtle
turtle.color("red")
turtle.circle(50)
import math

class Circle:
def __init__(self,radius=1):
self.radius = radius

def getPerimeter(self):
return 2*self.radius * math.pi

def getArea(self):
return self.radius*self.radius*math.pi

def setRadius(self,radius):
self.radius = radius

0 comments on commit 2e0c3fb

Please sign in to comment.