How do you find out the first letter or number of string in a list?
I have a list and I want to find whether any of the strings in the list start with a capital or little C.
The code I have is:
def isCMD(self): for word in msgstrlist: if msgstrlist == 'C': print word else: print "Not CMD message
I'm having a problem as it is only looking at the first word in the list. How can I change it so that it looks at all words?