from random import randint
a = [5, 4, 3, 9, 7, 4, 1, 1, 4, 7]
b = []
c = []
amount = int(input("Введите количество подмножеств: "))
for i in range(amount):
for j in range(randint(1, 2)):
rnd = randint(0, len(a))
b.append(a[rnd])
a.pop(rnd)
c.add(b)
b.clear()
for i in range(len(c)):
print(c)
c.add(b)
b.clear()