title: Python Crash Course 9-15 Exercise
body: <p>I have a problem with my logic. I'm currently reading python crash course, one of the exercises asks to model a lottery ticket and to see how many tries it took. The problem is I can leave it for days without winning....</p>
  
  <pre><code>import random
  
  
  a_list = ('33','18','27','5','4','12')
  
  winner_ticket = ('33','18','27')
  run = 0 
  while True:
      run += 1
      if random.sample(a_list,3) == winner_ticket:
          print(f"Your ticket is a winner with the numbers d{winner_ticket}")
          break
  
      if run &gt; 50000:
              break
      else:
          print(f"This is try number: {run}")
  </code></pre>