title: Favourite Card Python 3.8
body: <p>You've been given a new deck of cards for Christmas, with a massive amount of cards in the deck. Flipping through the cards, you decide on a favourite card.</p>
  <p>ALL OF A SUDDEN a speeding tennis player knocks the entire deck of cards from your hands, sending your favourite card into the massive pile of cards. Luckily, you remember the cards number, and you sit down to write a program to find your card.</p>
  <p>Given a list of numbers, and a number to be found, your job is to return where your favourite card is in the list of numbers.</p>
  <p><strong>Input Format:</strong>
  The first line will contain two integers, N (1≤N≤100), indicating how many cards there are in the deck, and S, the number of your favourite card.</p>
  <p>Following that will be N lines, each containing a number ci indicating which card is in the place in the stack of cards.</p>
  <p>The stack of cards is numbered from 0 to N−1.</p>
  <p><strong>Output Format:</strong>
  Your program is to output a single number indicating where your favourite card is in the deck. That is, you need to output i where ci is the favourite card number, S.</p>
  <p><strong>Sample Input 1</strong></p>
  <pre><code>10 62
  34
  28
  48
  62
  94
  56
  82
  94
  20
  10
  </code></pre>
  <p><strong>Sample Output 1</strong></p>
  <pre><code>3
  </code></pre>
  <p>i cant get the resaults
  heres my code:</p>
  <pre><code>N, S = [x for x in input().split()]
  max = N
  time = 1
  pos = 1
  for e in max:
      if max == S:
          print(time - 1)
      else:
          time += 1
  </code></pre>