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()