print('upper' if any(map(str.isupper, test)) else 'lower')
test = 'asdfghjkl'
print('upper' if any(map(str.isupper, test)) else 'lower')
how can i check if a letter in a string is capitalized using python?