Here is my line of code:
class Rectangle(object):
def __init__(self,x,y):
self.x=x
self.y=y
def Area(self):
return self.x*self.y
def Perimeter(self):
return self.x*2+self.y*2
def main():
print "Rectangle a:"
a = Rectangle(5, 7)
print "area: %d" % a.area
print "perimeter: %d" % a.perimeter
#print ""
#print "Rectangle b:"
#b = Rectangle()
#b.width = 10
#b.height = 20
#print b.getStats()
if __name__ == "__main__":
main()
What I can't figure out is how to pass the attribute of area. Any help or examples of what to do will be greatly appericated.