Skip to content

CodedDevil-01/Python_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Python_project

from turtle import * #turtle-preinstalled

state={'turn':0}

def spinner(): clear() angle=state['turn']/10 left(angle) forward(100) dot(120,'red') back(100) left(120) forward(100) dot(120, 'red') back(100) left(120) forward(100) dot(120, 'red') back(100) left(120) update()

def animate(): if state['turn']>0: state['turn']-=1 spinner() ontimer(animate,20)

def flick(): state['turn']+=50

tracer(False) width(20) onkey(flick,'space') listen() animate() done()

Releases

No releases published

Packages

No packages published