Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from graphics import *
- def Main():
- valid = False
- while not valid:
- sizeInput= eval(input("PLease select a size, 7, 9, 11: "))
- if sizeInput == 7 or sizeInput == 9 or sizeInput == 11 :
- size= sizeInput*100
- valid=True
- else:
- print("Invalid Number")
- Draw(size)
- def Draw(size):
- win = GraphWin("Pat1",size,size)
- PointX= Point(0,0)
- PointY= Point(700,70)
- line = Line(PointX,PointY)
- i = 0
- while i<10:
- line.draw(win)
- PointX.x+70
- PointY.y+70
- i=i+1
- `
Add Comment
Please, Sign In to add comment