Informatique

Question

Bonjour je dois désormais faire le drapeau de l’Allemagne en edupython en modifiant ce script.
Merci d'avance
Bonjour je dois désormais faire le drapeau de l’Allemagne en edupython en modifiant ce script. Merci d'avance

1 Réponse

  • Réponse :

    bjr

    Explications :

    attention a l indentation quand tu copies /ecris le script en python

    import PIL.Image as pil

    img = pil.new("RGB",(300,200),(200,0,0))

    for x in range(0,300):

       for y in range (0,66):

           img.putpixel((x,y),(0,0,0,))

       for y in range (133,200):

           img.putpixel((x,y),(255,255,0,))

    img.show()

    Image en pièce jointe de la réponse Tenurf