import random
count = 0
my_nums = [33, 42, 40, 12, 34, 4]
lotto_numbers = random.sample(range(1, 46), 6)
for i in range(6):
if my_nums[i] == lotto_numbers[i]:
count += 1
if count == 6:
print("1등 당첨! 당첨금: 2,000,000,000원")
elif count == 5:
print("2등 당첨! 당첨금: 70,000,000원")
elif count == 4:
print("3등 당첨! 당첨금: 1,800,000원")
elif count == 3:
print("4등 당첨! 당첨금: 50,000원")
elif count == 2:
print("5등 당첨! 당첨금: 5,000원")
else:
print("꽝입니다")
print("내 번호: ",my_nums)
print("로또 번호:", lotto_numbers)
To embed this project on your website, copy the following code and paste it into your website's HTML: