trou_noir.py

Created by cent20

Created on August 15, 2023

499 Bytes

📙 Découvrir la NumWorks p.50
2021, par Adam Youcef-Muzi


# Découvrir la NumWorks p.50
# Auteur : Adam Y.
# Réalisé par un de mes élèves de seconde 
# dans le cadre d'un DM "Les mathématiques sont belles"
# https://twitter.com/nsi_xyz/status/1380526928671674373

from turtle import *
from kandinsky import *

speed(10)
hideturtle()

x = 18
c = 225
s = 10
d = 100
a = 0

while a < 10:
  while x > 0:
    pencolor(c,c,c)
    pensize(s)
    circle(d)
    x = x - 1
    right(20)
  x = 18
  c = c - 25
  s = s - 1
  d = d - 10
  a = a + 1

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.