title: How do I have python run (if statements) based on the users input.?
body: <p>I am not doing anything particularly complicated I am simply messing with import random and having the user type roll to roll a six sided die. I have gotten this far.</p>
  
  <pre><code>import random
  
  roll = random.randint(1,6)
  
  input("Type roll to roll the dice!\n")
  
  # This is where I have my issue pass this line I'm trying things out, unsuccessfully.
  if (userInput) == (roll)
  
      print("\n" + str(roll))
  else:
      input("\nPress enter to exit.")
  </code></pre>
  
  <p>I don't want the program to print the <code>str(roll)</code> if the use presses enter, I'd rather it exit the program if no input is given. So how do I write the code to do particular thing based of user input when using the if statement. If user input is <code>'roll"</code> then <code>print("str(roll))</code>?</p>