Python Exercise Example65
# Python2.x Python Exercise Instance 65
[ Python 100 Examples](#)
**Title:** A most beautiful pattern.
**Program Analysis:** None.
Program source code:
```python
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import math
class PTS:
def __init__(self):
self.x = 0
self.y = 0
points = []
def LineToDemo():
from Tkinter import *
screenx = 400
screeny = 400
canvas = Canvas(width = screenx,height = screeny,bg = 'white')
AspectRatio = 0.85
MAXPTS = 15
h = screeny
w = screenx
xcenter = w / 2
ycenter = h / 2
radius = (h - 30) / (AspectRatio * 2) -
YouTip