-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Number guessing game #7
base: master
Are you sure you want to change the base?
Conversation
I make huggmab game` |
import random | ||
import math | ||
# Taking Inputs | ||
lower = int(input("Emter Lower bound:- ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misspelled word
# generating random number between | ||
# the lower and upper | ||
x = random.randint(lower, upper) | ||
print("\n\tYou've only ", round(math.log(upper - lower + 1, 2))," chances to guess the integer!\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use f string to minimize comma and quotation marks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
No description provided.