Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement