fleur_de_paque.py

Created by cent20

Created on April 03, 2022

510 Bytes


# Auteur : Emmy V, elève de seconde
"""
Réalisé dans le cadre d'un devoir maison "Les mathématiques sont belles"
https://twitter.com/nsi_xyz/status/1380207106947739653
"""

from turtle import*
import random

# fleur multicouleur
pensize(2)
colors  = ["red","yellow","orange","purple","pink"]
goto(0,21)
for j in range (8):
  for i in range(20):
    color(random.choice(colors))
    circle (random.randint(1,42))
  #goto(0,0)
  right(45)
# tige
pensize(6)
color("green")  
goto(0,-150)

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.