<jupyter_start><jupyter_text>InstructionsBuild a number guessing game<jupyter_code>logo = """
  / _ \_   _  ___  ___ ___  /__   \ |__   ___    /\ \ \_   _ _ __ ___ | |__   ___ _ __ 
 / /_\/ | | |/ _ \/ __/ __|   / /\/ '_ \ / _ \  /  \/ / | | | '_ ` _ \| '_ \ / _ \ '__|
/ /_\\| |_| |  __/\__ \__ \  / /  | | | |  __/ / /\  /| |_| | | | | | | |_) |  __/ |   
\____/ \__,_|\___||___/___/  \/   |_| |_|\___| \_\ \/  \__,_|_| |_| |_|_.__/ \___|_|  
"""


import random

print(logo)

print("Welcome to the Number Guessing Game \n")

number = random.randint(1,101)

attempt = 1

print("I'm thinking of a number between 1 and 100 \n")



difficulty = input("Choose a difficulty. Type 'easy' or 'hard' \n")
if difficulty == 'easy':
  max_attempts = 10
  print(f"You have {max_attempts} attempts remaining to guess the number.")
else:
  max_attempts = 5
  print(f"You have {max_attempts} attempts remaining to guess the number")

attempt = 0

guess = 0

while guess != number:

  guess = int(input("Make a guess: "))

  if attempt == max_attempts:
    print("You've run out of guesses. You lose. \n")
    break
  if guess < number:
    print("Too low")
    attempt += 1
    print(f"You have {max_attempts - attempt} attempts left.")
  elif guess > number:
    print("Too high")
    attempt += 1
    print(f"You have {max_attempts - attempt} attempts left.")
  else:
    print(f"You got it! The answer is {number}")
    attempt += 0<jupyter_output>/ _ \_   _  ___  ___ ___  /__   \ |__   ___    /\ \ \_   _ _ __ ___ | |__   ___ _ __ 
 / /_\/ | | |/ _ \/ __/ __|   / /\/ '_ \ / _ \  /  \/ / | | | '_ ` _ \| '_ \ / _ \ '__|
/ /_\| |_| |  __/\__ \__ \  / /  | | | |  __/ / /\  /| |_| | | | | | | |_) |  __/ |   
\____/ \__,_|\___||___/___/  \/   |_| |_|\___| \_\ \/  \__,_|_| |_| |_|_.__/ \___|_|  

Welcome to the Number Guessing Game 

I'm thinking of a number between 1 and 100 

You have 5 attempts remaining to guess the number
Too high
You have 4 attempts left.
{'fraction_non_alphanumeric': 0.19089048106448311, 'fraction_numerical': 0.011770726714431934, 'mean_word_length': 1.9711246200607904, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '529616', 'license': 'MIT', 'n_tokens_mistral': 824, 'n_tokens_neox': 755, 'n_words': 154, 'path': 'Day-12/Number Guessing Game.ipynb', 'repo_name': 'brunacmf/100-days-of-python', 'size': '1954'}