Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: "Guess the Number" game
Post: RE: "Guess the Number" game

So I chose the second solution to get rid of new_max and new_min. However, I don't really know after a low guess, I have minimum=guess, but how about the maximum in this case (I guess I'll keep the pr...
CTT General Coding Help 14 13,396 Jul-24-2017, 03:19 PM
    Thread: "Guess the Number" game
Post: RE: "Guess the Number" game

Yeah you are right, and I updated my min to guess when it's smaller than answer, and max to guess when larger than answer. But now I have trouble updating the other half, when guess is smaller than an...
CTT General Coding Help 14 13,396 Jul-24-2017, 02:22 PM
    Thread: "Guess the Number" game
Post: RE: "Guess the Number" game

Thanks guys! but I think I have to update both max and min when I input a new number (Sorry maybe what I said wasn't clear enough) First I have to input the answer(let's say 45), and the output should...
CTT General Coding Help 14 13,396 Jul-24-2017, 03:23 AM
    Thread: "Guess the Number" game
Post: RE: "Guess the Number" game

I updated the new max and min with a new loop, however, seems like I complicated this code...it will give me two results after the third attempt....please help. Thanks! import random random.randint(...
CTT General Coding Help 14 13,396 Jul-23-2017, 05:22 PM
    Thread: "Guess the Number" game
Post: RE: "Guess the Number" game

Thank you guys for helping! But what I meant is I have to input the secret_number(which is the answer in this case), so I shouldn't use secret_number=random.randint(1,99). I'm still having trouble wri...
CTT General Coding Help 14 13,396 Jul-18-2017, 10:50 AM
    Thread: "Guess the Number" game
Post: "Guess the Number" game

Hi I'm new to the forum and a beginner to python, please take it easy :) I'm trying to do "guess the number" game, but couldn't solve it The program will generate number from 1 to 99 and I have to in...
CTT General Coding Help 14 13,396 Jul-17-2017, 12:43 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020