Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = 7
- player_name = input("Hello, What's your name?")
- print("OKAY! "+ player_name + " Welcome to Brainy 2.0")
- attempt = 0
- print("I am guessing a number between 1 and 10:")
- while attempt < 5:
- guess = int(input())
- attempt += 1
- if guess < number:
- print("Your guess is to low")
- if guess > number:
- print("Your guess is to high")
- if guess == number:
- break
- if guess == number:
- print("WOW! "+ player_name+ " you guessed my number correctly")
- print("You guessed the number in "+ str(attempt)+ " tries!")
- else:
- print("You did not guess the number, The number was "+ str(number))
- feedback = input("Do you love Brainy 2.0?")
- if feedback == "YES,yes,Yes":
- print("COOL! Thanks for the love",player_name)
- else:
- print("OUCH! But thanks for being honest",player_name)
- comment = input("How do you suggest Brainy 2.0 should improve?")
- comment = input()
- print("Click ENTER to exit")
- close = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement