How to create 8 random numbers without any doubles and put them into a list. The code in lession day 44 breaks as soon as randint will generate 2 of the same numbers.
Repl link/Link to where the bug appears:
Screenshots, links, or other helpful context:
If randint makes 2 same numbers, it will only give me 7 numbers in total. When checking the variables in the bingo card I’ll get an “out of range” after, as it expects to have 8 nr. in it.
numbers =  for i in range(8): value = random.randint(1,90) while value not in numbers: numbers.append(value) numbers.sort()