python turtle module tutorial program

Publié le: 02 mars 2022
sur la chaîne: Code Prep
20
5

source code :-



from turtle import *
import random
bgcolor('black')
speed(speed ='fastest')
def draw(n, x, angle):

for i in range(n):
colormode(255)
a = random.randint(0, 255)
b = random.randint(0, 255)
c = random.randint(0, 255)
pencolor(a, b, c)
fillcolor(a, b, c)
begin_fill()

for j in range(5):

forward(5 * n-5 * i)
right(x)
forward(5 * n-5 * i)
right(72 - x)

end_fill()
rt(angle)

n = 30
x = 144
angle = 18
draw(n, x, angle)




#python
#coding
#computer_science
#shorts
#programming
#codevein
#xiaomi
#codewithharry
#be_a_progarmer
#pythontutorial



Link :-   • python programming tutorials#shorts #pytho...  


Sur cette page du site, vous pouvez voir la vidéo en ligne python turtle module tutorial program durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code Prep 02 mars 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 20 fois et il a aimé 5 téléspectateurs. Bon visionnage!