YouTip LogoYouTip

Python Exercise Example65

# Python2.x Python Exercise Instance 65 [![Image 4: Python 100 Examples](#) 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) -
← Python Exercise Example66Python Exercise Example64 β†’