logo

Is the string uppercase?

Create a method to see whether the string is ALL CAPS.


My code:

def is_uppercase(inp):
    uppercase = inp.upper()
    if inp == uppercase:
        return True
    else:
        return False
                        
                    


And that's the best solution among all users:

def is_uppercase(inp):
    return inp.upper()==inp