Without if statements?
Apologies typing on my phone
def input_checker(input_str):
input_str = input_str.lower()
validation_dict = {“true”: “they input true”,
“false”: “they input false”}
return validation_dict.get(input_str, “They input something else”)
You are comparing the content of strings, not their truth value. A string is true if it’s not empty and false if it is. The string “True” is no closer to the bool True than the string “Oranges” is.
What you are looking for is input validation. Check the content of what they wrote and respond accordingly.