czesc, nie moge rozw. tego problemu, wie ktos w czym szkopuł:
chce tworzyc liste list, gdzie funkcja subSet zwraca liste bez losowych elementow, niestety otrzymuje liste takich samych list np. dla input [1,2,3,4,5] -> [[1, 5], [1, 5], [1, 5], [1, 5], ...
gdy printuje subSet jest ok ale przy append cos zle zapisuje
def subSet(S):
S.remove(random.choice(S))
return S
SS = [1,2,3,4,5]
S = [subSet(i,SS) for i in range(5)]
sabek