lottos = list(random.sample(range(1, 46), 6))
lottoList = lottos.append(bonus)
for n in numbers:
for lotto in lottoList: #TypeError: 'NoneType' object is not iterable
if n == lotto:
corrects.append(n)
#변경 전
lottoList = lottos.append(bonus)
#변경 후
lottoList = lottos.copy()
lottoList.append(numbers)