from random import *
first = randint(1, 45)
second = randint(1, 45)
third = randint(1, 45)
fourth = randint(1, 45)
fifth = randint(1, 45)
sixth = randint(1, 45)
numbers = [first, second, third, fourth, fifth, sixth]
for number in numbers:
if (first != second != third != fourth != fifth != sixth != first != third != fifth != first\
!= fourth != sixth != second != fifth != fourth != second != third != sixth):
print(number)
else:
break
위에 로또번호 만드는 프로그램 내가 직접 짜고 성공한 뒤에 검색해서 어떻게 짜는지 봤는데
import random
my_number = random.sample(range(1, 46), 6)
my_number.sort()
print(f'{my_number}')
달랑 이 하나로 되는거엿네..ㅇㅅㅇ
뉴비 더 성장해서 올게 지켜보라구 ㅇㅅㅇ
굿 계속 성장하는거임 원래 ㅋㅋ - dc App
그러면서 실력 늘리는거쥐~굿굿