title: NameError: name 'lower' is not defined
body: <p>This is very basic, I'm sure, but I'm making a card game and it comes up with this error (I'm sure it's obvious but I don't know what's wrong):</p>
  
  <pre><code>Traceback (most recent call last):   
  File "\\MONSRVNSS02\Student$\HG.McLellan\at school work\Computing\Python\not relevant\A[ Random Card Game].py", line 12, in &lt;module&gt;
   answer5 = input(str('Your card is ' + card1 + '. Higher or lower?   '))
   File "&lt;string&gt;", line 1, in &lt;module&gt; NameError: name 'lower' is not defined. 
  </code></pre>
  
  <p>My code is: </p>
  
  <pre><code>import random
  
  def Random_Card ():
      card_number = ['Ace ', '2 ', '3 ', '4 ', '5 ', '6 ', '7 ', '8 ', '9 ' , '10 ', 'Jack ', 'Queen ', 'King ']
      card_suit = ['Hearts' , 'Diamonds' , 'Clubs' , 'Spades']
      number = random.choice (card_number)
      suit = random.choice (card_suit)
      return number + suit
  
  card1 = Random_Card()
  
  answer5 = input(str('Your card is ' + card1 + '. Higher or lower?   '))
  card2 = Random_Card()
  
  test = 1
  
  while test == 1 :
  
      if card1 == 'Ace' :
          card1 ==14
      if card1 == 'Jack' :
          card1 == 11
      if card1 == 'Queen' :
          card1 == 12
      if card1 == 'King' :
          card1 == 13
  
      if card2 == 'Ace' :
          card2 == 14
      if card2 == 'Jack' :
          card2 == 11
      if card2 == 'Queen' :
          card2 == 12
      if card2 == 'King' :
          card2 == 13
  
      if answer5 == 'higher' :
          if card1 &lt; card2 :
              test = test
      else:
  
          if card1 &gt; card2:
              test = test + 12
  
      card1 = Random_Card()
  
      answer5 = input('Your card is ' + card1 + '. Higher or lower?')
      card2 = Random_Card()
  
  print ("You lose!")
  </code></pre>