Midnightsun Posted May 26, 2023 Report Posted May 26, 2023 print("\n\tYou've only ",        round(math.log(upper - lower + 1, 2)),       " chances to guess the integer!\n")  # Initializing the number of guesses. count = 0  # for calculation of minimum number of # guesses depends upon range while count < math.log(upper - lower + 1, 2😞     count += 1   Doubt enti ante (upper - lower +1,2) what exactly does it do Quote
nenu_meeku_telusa Posted May 26, 2023 Report Posted May 26, 2023 4 hours ago, Midnightsun said: print("\n\tYou've only ",        round(math.log(upper - lower + 1, 2)),       " chances to guess the integer!\n")  # Initializing the number of guesses. count = 0  # for calculation of minimum number of # guesses depends upon range while count < math.log(upper - lower + 1, 2😞     count += 1   Doubt enti ante (upper - lower +1,2) what exactly does it do https://www.w3schools.com/python/ref_math_log.asp 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.