@property
def valenceSubshell(self):
    'Name of the valence subshell.'
    for (subshell, properties) in SUBSHELLS.items():
        if (self.atomicNumber in range(*properties['atomicNumbers'])):
            return subshell
    return None
Name of the valence subshell.
@property
def valenceSubshell(self):
    
    for (subshell, properties) in SUBSHELLS.items():
        if (self.atomicNumber in range(*properties['atomicNumbers'])):
            return subshell
    return None