Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Hinh Phan
    Hinh Phan
    2,564 Points

    REVERSE GAME HELP: I can't run my code. Spot my fault pls.

    Posted May 3, 2018 4:56am by Hinh Phan
    Hinh Phan
    2,564 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    4 Answers

  • Brett McGregor
    PLUS
    Brett McGregor
    Courses Plus Student 1,903 Points

    Here is my solution to opposite number game. I used a sort of binary search rather than generating random numbers.

    Posted March 16, 2018 12:18am by Brett McGregor
    Brett McGregor
    Courses Plus Student 1,903 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    1 Answer

  • Hoessein Abd
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Hoessein Abd
    Python Web Development Techdegree Graduate 19,107 Points

    This is how I did the reverse game! I want to add 1 more functionality. Can anyone give me a tip?

    Posted January 29, 2018 6:04pm by Hoessein Abd
    .a{fill-rule:evenodd;}techdegree seal-36
    Hoessein Abd
    Python Web Development Techdegree Graduate 19,107 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    1 Answer

  • Nigel Chia
    Nigel Chia
    909 Points

    reverse number game help

    Posted January 11, 2018 12:38pm by Nigel Chia
    Nigel Chia
    909 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    1 Answer

  • Mahmoud Galal
    Mahmoud Galal
    553 Points

    How can I get the computer to vary the number it is guessing?

    Posted September 22, 2017 7:30pm by Mahmoud Galal
    Mahmoud Galal
    553 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    1 Answer

  • Jonathan Whelchel
    Jonathan Whelchel
    2,096 Points

    Reverse Numbers game help

    Posted July 28, 2017 2:42pm by Jonathan Whelchel
    Jonathan Whelchel
    2,096 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    4 Answers

  • Sachin Kanchan
    Sachin Kanchan
    564 Points

    Reverse Number Game: I have written a program, works for me, but I would like to hear your feedback.

    Posted July 19, 2017 5:37pm by Sachin Kanchan
    Sachin Kanchan
    564 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    0 Answers

  • Jim Garman
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Jim Garman
    Python Web Development Techdegree Student 1,716 Points

    Inverse Number Game - Ending the while loop after the 3rd Guess

    Posted July 16, 2017 1:01am by Jim Garman
    .a{fill-rule:evenodd;}techdegree
    Jim Garman
    Python Web Development Techdegree Student 1,716 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    1 Answer

  • Hussein Amr
    Hussein Amr
    2,461 Points

    Question about the opposite guessing game

    Posted June 21, 2017 3:02am by Hussein Amr
    Hussein Amr
    2,461 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    1 Answer

  • Tarun Jha
    Tarun Jha
    2,844 Points

    Except not working as it should!

    Posted June 11, 2017 5:13pm by Tarun Jha
    Tarun Jha
    2,844 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    2 Answers

  • Gleb Albovsky
    Gleb Albovsky
    5,341 Points

    Opposite Number Game problem

    Posted March 5, 2017 9:26pm by Gleb Albovsky
    Gleb Albovsky
    5,341 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    2 Answers

  • Yuda Leh
    Yuda Leh
    7,618 Points

    My inverse of Number Game

    Posted November 20, 2016 5:52pm by Yuda Leh
    Yuda Leh
    7,618 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    4 Answers

  • john larson
    john larson
    16,594 Points

    Number game extra credit. I think I got it. It works anyway.

    Posted August 26, 2016 2:22am by john larson
    john larson
    16,594 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    0 Answers

  • john larson
    john larson
    16,594 Points

    how do I try: a negative number in try: except: else:

    Posted August 24, 2016 9:05pm by john larson
    john larson
    16,594 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    1 Answer

  • Mark Kohner
    Mark Kohner
    1,760 Points

    Python: Number game takeaways, extra Reverse number game logic problems

    Posted August 21, 2016 8:10am by Mark Kohner
    Mark Kohner
    1,760 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    2 Answers

  • Mohammad Zryab
    Mohammad Zryab
    4,109 Points

    Getting a never ending loop for the extra credit

    Posted April 28, 2016 8:31pm by Mohammad Zryab
    Mohammad Zryab
    4,109 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    6 Answers

  • Lia Gaetano
    Lia Gaetano
    2,619 Points

    Hi! I'm having two runtime errors: 1. game() is not counting/limiting guesses 2. .format doesn't return error value.

    Posted January 18, 2016 4:11pm by Lia Gaetano
    Lia Gaetano
    2,619 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    1 Answer

  • Mikael Van Vyve
    Mikael Van Vyve
    5,298 Points

    Problem with the try method.

    Posted December 26, 2015 2:33pm by Mikael Van Vyve
    Mikael Van Vyve
    5,298 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    1 Answer

  • Endrin Tushe
    Endrin Tushe
    4,591 Points

    Problem with random.randint() in extra credit Numbers game challenge

    Posted December 17, 2015 3:25am by Endrin Tushe
    Endrin Tushe
    4,591 Points
    • Python
    • Python Basics (2015)
    • Number Game App
    • Number Game Takeaways

    4 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord