def symbol(draw,x,y) :
draw.fillcolor('violet')
draw.setposition(x,y)
draw.down()
draw.begin_fill()
draw.forward(5)
draw.right(90)
draw.forward(5)
draw.right(90)
draw.forward(5)
draw.right(90)
draw.forward(5)
draw.right(90)
draw.end_fill()
draw.up()
import turtle
from turtle import *
fenetre=turtle.Screen()
tortue = turtle.Turtle()
tortue.speed("fast")
fenetre.reset()
fenetre.setworldcoordinates(-5,-5,105,105)
fenetre.bgcolor("orange")
nmax=int(100/(5+2))
rep=input("Combien veux-tu de symboles ' < "+str(nmax)+") ? ")
n=int(rep)
if n <= nmax :
i=1
j=1
xpos=0
ypos=100
tortue.up()
while j<=n :
while i<=j :
print(xpos,ypos)
symbol(tortue,xpos,ypos)
i=i+1
xpos= xpos + 7
j=j+1
i=1
xpos= 0
ypos=ypos -7
else :
print('impossible')