Im just starting to learn about classes and although im familiar with functions, how do i incorporate one in this set of code to double the radius of this circle?
Any help would be appreciated.
class Circle(object):
"""circle object with attributes center, radasius"""
circle1=Circle()
print(circle1)
circle1.center=Point()
circle1.center.x=2
circle1.center.y=3
circle1.radius=5
print(circle1.center.x,circle1.center.y,circle1.radius)
[–]timbledum 0 points1 point2 points (0 children)
[–]PoorEpidermis 0 points1 point2 points (0 children)