Yes, your code requires the numbers to be in the exact order. To fix this, sort both lists before comparison:
python Copy Edit while sorted(winning_numbers) != sorted(lotterylist): UK49s draws are random, making winning incredibly rare!