title: Trying to make a rock paper scissors game how do i get the userinput?
body: <p><strong>Tried making a rock paper scissors game i failed</strong></p>
  <p>so to learn python I was making a rock paper scissors game that detects user input put I'm not sure how I can detect this user input does anyone help me</p>
  <pre><code>
  
  def play():
   while input(&quot;Would you like to play rock paper scissors (Y/N)&quot;).upper() == &quot;Y&quot;:
      main()
  
  def main():
      userinput = while input(&quot;Rock Paper Or Scissors: &quot;).upper()
          if userinput == &quot;rock&quot;:
              print(&quot;User Used Rock&quot;)
          elif userinput == &quot;paper&quot;:
              print(&quot;User Used Paper&quot;)
          elif userinput == &quot;scissors&quot;:
              print(&quot;User Used Scissors&quot;)
          else:
              print(&quot;Invalid Option&quot;)
  
  if __name__ == &quot;__main__&quot;:
      play()
      
  </code></pre>