로또 6/45 Lotto 6/45
version : 0.3.1
date : 2025-01-06 (Y-M-D)
author : gangserver
import sys
from pyscript import display
#display(sys.version)
import random
lotto_num = range(1, 46)
for i in range(10):
idx = str(i + 1)
if i < 9:
idx = "0" + idx
display(f"Lotto 6/45 result {idx} : {sorted(random.sample(lotto_num, 6))}\n")
if i == 4:
display("=" * 35 + "\n")