## Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

# Minigame stopping partway through?

Hi everyone, this is my first time posting and is my first mini-project:

#This is a very basic number guessing game created to practice boolians

name = input("Hi there, what's your name?   ")
game_question = input("Hi {}, would you like to play a game? yes/no   " .format(name))
if game_question == "yes":
answer_1 = input("Brilliant stuff! I'll think of a number and you have 5 attempts to guess what it is. Still want to play!? yes/no   ")
guess_1 = input("Ok then {}, I'm thinking of a number between 1 and 50.. Go on take a guess...   " .format(name))
if int(guess_1) == 42:
print("Well done! You've guessed right! And you now know that 42 is the meaning of life.")
elif int(guess_1) < 42:
guess_2 = input("Nope, try a bit higher...   ")
else:
guess_2 = input("Nope, you're a bit too high...   ")

if int(guess_2) == 42:
print("Well done! You've guessed right! And you now know that 42 is the meaning of life.")
elif int(guess_2) < 42:
guess_3 = input("Still not right, try a bit higher...   ")
else:
guess_3 = input("Still not right, try lower...   ")

if int(guess_3) == 42:
print("Well done! You've guessed right! And you now know that 42 is the meaning of life.")
elif int(guess_3) < 42:
guess_4 = input("You're not very good at this are you, higher...   ")
else:
guess_4 = input("You're not very good at this are you,lower...   ")

if int(guess_4) == 42:
print("Well done! You've guessed right! And you now know that 42 is the meaning of life.")
elif int(guess_4) < 42:
guess_5 = input("Last try, a little higher...   ")
else:
guess_5 = input("Last try, a little lower...   ")

if int(guess_5) == 42:
print("Well that took you long enough... at least you now know that 42 is the meaning of life.")
else:
print("YOU LOSE! But thanks for playing my game anyway :) ")

else:
print("That's a shame... please come and see me again when you feel like playing :( ")
else:
print("That's a shame... please come and see me again when you feel like playing :( ")

For some reason, while playing my little number search minigame the console simply stops asking for inputs and ends the code. Any thoughts and what may be causing it?