0

I just started with python and cannot figure out what is wrong with using multiple conditions for if-statements I've spent days trying to figure out what is wrong but I can't find a fix

        decimal_int = input("Would you like your number to be a decimal or a integer(this is case sensitive)")
        range_Start = int(input("whats the beginning of the number range you want to generate"))
        range_End = int(input("whats the end of the number range you want to generate"))
        if decimal_int == "Integer" or "int" or "Int" or "integer":
            rng(range_Start, range_End, random.randint)
        else:
            rng(range_Start, range_End, random.random)

I get no errors but even if the string for decimal_int is not any of those it still puts the if statement as true can anyone help?

wasz
  • 1

0 Answers0