I want to ask the user a true/false question and get a boolean value from it, but I don't really understand how .bool()
works. This is more of a "what can I do?' than a "what's the problem?".
So for example, this is what my code is looking like:
question = input("Is the Earth flat? ")
if question.bool() is True:
print("You dumb.")
I know this isn't correct but I'm not sure what would work!
What makes the .bool()
register True or False?
I thought this might be what I have to do but it doesn't seem right:
if question == "Yes" or "Yeah" or "Y" or "Duh".lower()
print("You dumb.")