Thursday, October 11, 2018

Peer 4 exercise

#import graphics module
from graphics import *

#draw two circles in a ven diagram
def main():
    win=GraphWin("Ven",300,200)
    center=Point(100,100)
    radius=60
    circ=Circle(center, radius)
    circ.draw(win)
    center2=Point(200, 100)
    circ2=Circle(center2,radius)
    circ2.draw(win)
    win.getKey()

main()

No comments:

Post a Comment