SHARE
TWEET

Untitled

a guest Jun 16th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. number = 7
  2. player_name = input("Hello, What's your name?")
  3. print("OKAY! "+ player_name + " Welcome to Brainy 2.0")
  4. attempt = 0
  5. print("I am guessing a number between 1 and 10:")
  6. while attempt < 5:
  7.     guess = int(input())
  8.     attempt += 1
  9.     if guess < number:
  10.         print("Your guess is to low")
  11.     if guess > number:
  12.         print("Your guess is to high")
  13.     if guess == number:
  14.         break
  15. if guess == number:
  16.     print("WOW! "+ player_name+ " you guessed my number correctly")
  17.     print("You guessed the number in "+ str(attempt)+ " tries!")
  18. else:
  19.     print("You did not guess the number, The number was "+ str(number))
  20. feedback = input("Do you love Brainy 2.0?")
  21. if feedback == "YES,yes,Yes":
  22.     print("COOL! Thanks for the love",player_name)
  23. else:
  24.     print("OUCH! But thanks for being honest",player_name)
  25.     comment = input("How do you suggest Brainy 2.0 should improve?")
  26.     comment = input()
  27. print("Click ENTER to exit")
  28. close = input()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top