title: Heads or Tails / Coin-flip program
body: <p>I want to write a coin flip or "Heads or Tails" program, but when I run it, it only gets either heads or tails everytime. I can't see why, it's a logical error so I find it hard to spot. </p>
  
  <pre><code>import random
  
  flips = 1
  
  coin = random.randint(1,2)
  
  heads = 0
  tails= 0 
  
  while flips &lt;= 100:
       if coin == 1:
          print("Heads")
          heads += 1
          flips +=1
       elif coin == 2:
          print("tails")
          tails += 1
          flips +=1
  
  print("You got", heads, "heads and", tails,"tails!")
  
  
  input("Exit") 
  </code></pre>