if(x[0].isupper()): return True elif(x[0].islower()): return False
In [48]: x = 'Linux' In [49]: x[0].isupper() Out[49]: True In [51]: x = 'lINUX' In [53]: x[0].isupper() Out[53]: False