<jupyter_start><jupyter_text><jupyter_code>#Description : Rock , Paper , Scissors Program
#Import the Libraries
import random
choices = ["R","P","S"]
def get_choice(input):
  if input == "R":
    return "Rock"
  elif input == "P"  :
    return "Paper"
  elif input == "S":
    return "Scissors"  
  else :
    return "Not [R, P , or S]"
  
print("Rock, Paper , Scissors -  Shoot!")
print('[R]=Rock , [P]=Papers [S]=Scissors and [Q]=Quit')
counter = 1


while True :

  print('Game ' +str(counter)+ ':')
  print('Please choose a letter:')
  user_choice = input()
  if user_choice == "Q" :
    print('Thanks for Playing  !')
    break;

  random_index = random.randint(0,2)
  computer_choice = choices[random_index]

  print('You choose ' +get_choice(user_choice)+' The computer choose ' +get_choice(computer_choice))

  if user_choice == 'R' and computer_choice =='S':
    print('You win,Rock beats Scissors')
  elif user_choice == 'P' and computer_choice == 'R'  :
    print('You win, Paper beats Rock')
  elif user_choice == 'S' and computer_choice == 'P' :
    print('You win , Scissors beat Paper')  
  elif user_choice == 'R' and computer_choice == 'P' :
    print('Computer wins, Paper beats Rock')  
  elif user_choice == 'P' and computer_choice == 'S' :
    print('Computer wins, Scissors beats Paper')    
  elif user_choice == 'S' and computer_choice == 'R' :
    print('Computer wins, Rock beats Scissors')
  elif user_choice == computer_choice :
    print('Its a Tie !')
  else :
    print('Please enter [R,P,S or Q')

  counter = counter + 1
  print('\n')<jupyter_output>Rock, Paper , Scissors -  Shoot!
[R]=Rock , [P]=Papers [S]=Scissors and [Q]=Quit
Game 1:
Please choose a letter:
\r
You choose Not [R, P , or S] The computer choose Scissors
Please enter [R,P,S or Q


Game 2:
Please choose a letter:
R
You choose Rock The computer choose Paper
Computer wins, Paper beats Rock


Game 3:
Please choose a letter:
Q
Thanks for Playing  !
{'fraction_non_alphanumeric': 0.1400718317085685, 'fraction_numerical': 0.0035915854284248334, 'mean_word_length': 3.8507462686567164, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '572957', 'license': 'Unlicense', 'n_tokens_mistral': 704, 'n_tokens_neox': 657, 'n_words': 216, 'path': 'Rock_Paper_Scissors.ipynb', 'repo_name': 'Parvezibrahim/Python-Projects', 'size': '1949'}