I'm new to python, why is the colon an invalid syntax? : <p>I'm very new to python, and am trying to build a heads or tails system. But whenever I add the colon to the end of the if statement, it states it as invalid syntax. Though, when I remove the colon, it states invalid syntax for the next line.</p>

<pre><code>import random

def coinToss (
coinFlip = random.choice([1, 2])

  if coinFlip == 1:
    print("You got Heads!")
  else
    print("You got Tails!")
):

 usrFlip = input("Press Enter to Flip a Coin")

 if usrFlip == str:
   coinToss():
</code></pre>
