<jupyter_start><jupyter_text>Challenge Of The DayConcepts tested: Loops, Variables, RandomThis is a 2-player game.Player 1 will be the computer and would choose a random number from 1-100Player 2 will have to guess what player 1 had chosenPlayer 2 should guess the number within 10 tries, if not player 1 will win!Below is a sample trial:Player to guess: 40Too smallNumber of tries left: 9Player to guess: 60Too bigNumber of tries left: 8Player to guess: 50Player won!<jupyter_code>import random
p1=random.randint(1,100)
trials=10
end=False
while trials>0 and end==False:
  guess=int(input("enter between 1-100"))
  trials=trials-1
  if guess<p1:
    print("Too small")
    print("Number of trials left ",trials)
  elif guess>p1:
    print("Too big")
    print("Number of trials left ",trials)
  else:
    print("Player won")
    end=True
if trials==0 and end==False:
  print("Player lost")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09021739130434783, 'fraction_numerical': 0.0391304347826087, 'mean_word_length': 4.941935483870968, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, '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': '422607', 'license': 'Apache-2.0', 'n_tokens_mistral': 315, 'n_tokens_neox': 288, 'n_words': 113, 'path': 'Copy_of_Session_2_Guess_the_Number.ipynb', 'repo_name': 'papohk/appdev-week3-graphql', 'size': '920'}