words = x.split('_')
for word in words:
    if word[0] == word[0].upper() and word[1:] == word[1:].lower():
        print(word, 'is conformant')
else:
    pass
How to check if a character is upper-case in Python?