import matplotlib.pyplot as plt import numpy as np def arbre(n, a, r, x, y): if n == 1: X = np.round([x, x + ...........], 2)#arrondi à 2 dixième Y = np.round([y, y + ..........], 2) plt.plot(X, Y, 'green') else: arbre(1,...................) arbre(n-1, .............................................) arbre(n-1, .............................................) arbre(5, np.pi/2, 1, 0 , 0) plt.axis("square") plt.show()