from turtle import * from itertools import permutations def vektor(ile): t = [[0 for _ in range(2)] for _ in range(ile)] print(t) for i in range(ile): print(i + 1, end="") t[i][0], t[i][1] = input(". wektor: ").split(" ") t[i][0] = int(t[i][0]) t[i][1] = int(t[i][1]) print(t) w = [list(p) for p in permutations(t)] print(w) pensize(2) for i in range(ile): goto(t[i][0], t[i][1]) penup() goto(0, 0) pendown() pensize(1) for i in range(len(w)): for j in range(len(w[i])): goto(w[i][j][0] + xcor(), w[i][j][1] + ycor()) penup() goto(0, 0) pendown() mainloop()