# L-26 MCS 260 Fri 26 Oct 2007 : pointcircle # # This Python program uses the functionality # of the classes circle and point. # Note that Point is imported indirectly # via the import of the class Circle. from classcircle import * print 'using classes point and circle' x = input('give x : ') y = input('give y : ') p = Point(x,y) print 'the point ' + str(p) print 'has coordinates ', p.x, p.y r = input('give r : ') c = Circle(x,y,r) print 'the circle :\n' + str(c) print 'has area ', c.area()