title: Function return, only returns 1 value on for loop
body: <p>I am writing a code that would return 2 random numbers from a list of numbers into an empty list outside of the function deal_card(). But when printed, it only return 1 value. I tried with different indentation and still it only return 1 value. Thanks in advance.</p>
  <pre><code>import random
  def deal_card():
    for card in range (2):
      cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
      card_length = len(cards)
      pick = random.randint(0, card_length-1)
    return cards[pick]
        
     
  user_cards = []
  user_cards.append(deal_card())
  print(user_cards)
  </code></pre>