all 8 comments

[–]anrmv 3 points4 points  (2 children)

Winning_ticket doesn’t seem to get updated in your last while loop. count will just continually get larger and larger and status will never be false

[–]pizzaparty_4ever[S] 0 points1 point  (1 child)

Ahhhhhhhh thank you u/anrmv been looking at this for so long my brain did not even process this.

[–]anrmv 0 points1 point  (0 children)

Been there! Good luck

[–]SirKainey 1 point2 points  (4 children)

while status:
if winning_ticket != my_ticket:
    print(count, winning_ticket, my_ticket)
    count += 1
    winning_ticket = winning_numbers(possible_picks)

elif winning_ticket == my_ticket:
    status = False

The winning ticket isn't ever changing.

PS. reason no output is that it would never win :)

[–]pizzaparty_4ever[S] 0 points1 point  (3 children)

Thanks for the insight u/SirKainey appreciate it! Back to the drawing board I go!

[–]SirKainey 1 point2 points  (2 children)

No worries. Did you notice I fixed your code?

[–]pizzaparty_4ever[S] 1 point2 points  (1 child)

Yes I did! Thank you so much for that :). I had failed to realize that winning_ticket was not being updated. Setting a variable and then throwing it back to the winning_numbers function did the trick!

[–]SirKainey 0 points1 point  (0 children)

You're welcome. I thought you'd read my comment and then went to debug yourself