in python, how do i check if an user boolean input is true or false
in python, how do i check if an user boolean input is true or false
to my knowledge, if you input any text it will return true and if you input nothing it will return false. if it's possible without if statements, how do i check if they inputted 'True' or 'False (/ '1' or '0') when im doing 'bool(input("Input True or False ")'.
input("Input True or False") == "True"
Will work but this strikes me as a likely example of an XY problem. What are you actually trying to achieve?