로또
[모듈] 로또 번호 추출
🔍 문제 6개의 수를 입력하고, 프로그램으로 부터 부여받은 7개의 난수(6개+보너스 1개)와 를 당첨 여부 확인 🗝 사용함수 random.sample(range(a, b+1), c) : a와 b 사이의 c개 random.randint(a,b) : a와 b 사이 난수 1개 If a in b : a가 b에 들어 있으면 True len(x) : x(자료구조)의 길이 🖥 실행 1)모듈 생성 import random userNums = []; randNums = []; correctNums = [] bonusNum = 0 def setUserNums(n): global userNums userNums = n def getUserNums(): return userNums def setRandNums(): globa..