title: TypeError: '>=' not supported between instances of 'str' and 'int' - tried to add int to input no luck
body: <p>I have looked at a lot of these similar questions and I thought I used the information correct by adding int to my input but I am still receiving the same error. Can anyone help?</p>
  <pre><code>import random
  
  class Cards:
      def __init__(self, rank, suit):
          self.rank = rank
          self.suit = suit
          self.value = 1
          
      def getRank(self):
          ranks = [&quot;Ace&quot;, &quot;Two&quot;, &quot;Three&quot;, &quot;Four&quot;, &quot;Five&quot;, &quot;Six&quot;,
                   &quot;Seven&quot;, &quot;Eight&quot;,&quot;Nine&quot;,&quot;Ten&quot;,&quot;Jack&quot;, &quot;Queen&quot;, &quot;King&quot;]
          self.rank = random.choice(ranks)
          return self.rank
  
      def getSuit(self):
          suits = [&quot;Clubs&quot;, &quot;Hearts&quot;, &quot;Spades&quot;, &quot;Diamonds&quot;]
          self.suit = random.choice(suits)
          return self.suit
  
      def getValue(self):
          if self.rank &gt;= 10:
              return self.rank
          else:
              return 10
  
      def __str__(self):
        return (self.rank, &quot;of&quot;, self.suit)
  
  def main():
      n = int(input(&quot;How many cards would you like to see? &quot;))
      
      for i in range(1, n+1):
          ranks = [&quot;Ace&quot;, &quot;Two&quot;, &quot;Three&quot;, &quot;Four&quot;, &quot;Five&quot;, &quot;Six&quot;,
               &quot;Seven&quot;, &quot;Eight&quot;,&quot;Nine&quot;,&quot;Ten&quot;,&quot;Jack&quot;, &quot;Queen&quot;, &quot;King&quot;]
          suits = [&quot;Clubs&quot;, &quot;Hearts&quot;, &quot;Spades&quot;, &quot;Diamonds&quot;]
      
          cardhand = Cards(random.choice(ranks), random.choice(suits))
          print (&quot;The&quot;, cardhand, &quot;has a Blackjack value of&quot;, cardhand.getValue())
          
  
  main()
  </code></pre>