pizza_fb.py

Created by schraf

Created on January 03, 2022

217 Bytes

Ma chaine Youtube consacrée aux maths, à la programmation en Python, aux calculatrices, Excel, etc.

Version simple avec des cercles

import turtle

t = turtle

for [x,y] in [[-160,-97],[160,-97],[0,-207],[0,13]]:
    t.penup()
    t.goto(x,y)
    t.pendown()
    t.circle(97)

t.hideturtle()

Version avec de vrais demi-cercles

Voir programme ci-dessous


import turtle

t = turtle

for [x,y,h] in [[-160,-97,0],[160,97,-180],[97,-110,90],[-97,110,-90]]:
    t.penup()
    t.goto(x,y)
    t.pendown()
    t.setheading(h)
    t.circle(97,180)

t.hideturtle()

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.