python turtle import : programation python

Published: 07 May 2018
on channel: best learning
59
1

1) copy this lines in new file example.py

########################################################
import turtle

def square(test,i):
test.fd(20),test.rt(360/i)
n=12
m=10
t =turtle.Turtle()
for k in range(6):
for j in range(m):
for i in range(n):
square(t,n)
t.rt(30)
t.fd(200)
turtle.mainloop()

#######################################################

2) before run code you need to install turtule modele (ex: ubuntu machine)

open your terminal and tab this command
sudo apt-get install python3-tk

3) to run code tab
python example.py


On this page of the site you can watch the video online python turtle import : programation python with a duration of hours minute second in good quality, which was uploaded by the user best learning 07 May 2018, share the link with friends and acquaintances, this video has already been watched 59 times on youtube and it was liked by 1 viewers. Enjoy your viewing!