import random

while True:
    moja_lista = random.sample(range(1, 14), 7)
    print("Twoje szczesliwe numery to:\n{}". format(moja_lista))
    if input("Czy chcesz losowac jeszcze raz? ") != "tak":
        break

print("Milego odbierania wygranej")

Add a code snippet to your website: www.paste.org