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 ")’.

  • @Touching_Grass@lemmy.world
    link
    fedilink
    152 years ago

    Post your code to Stack overflow and make the title of the post something like “found efficient way to check if user input boolean value”