class Validator:

    def username_is_valid(self, username):

        if len(username) > 10:
            return False

        if ' ' in username:
            return False

        if username.islower():
            return False
            
        
        if any(specialchar in username  for specialchar in "$%^&*()#@"):
            return False

        return True
11410d05f5c0ec495c8af7674f8297d1b8a80cdf
<mask token>

class Validator:
    <mask token>

class Validator:

    def username_is_valid(self, username):
        if len(username) > 10:
            return False
        if ' ' in username:
            return False
        if username.islower():
            return False
        if any(specialchar in username for specialchar in '$%^&*()#@'):
            return False
        return True

class Validator:

    def username_is_valid(self, username):

        if len(username) > 10:
            return False

        if ' ' in username:
            return False

        if username.islower():
            return False
            
        
        if any(specialchar in username  for specialchar in "$%^&*()#@"):
            return False

        return True