I realized in some part of a program of mine following statements print False:
#coding = utf-8
turkishConsonants = ['b', 'c', 'ç', 'd','f','g','ğ','h','j','k','l','m',
'n','p','r','s','ş','t','v','y','z']
word = “ağla”
print word[-3] in turkishConsonants
The reason for this was the letter ‘ğ’ is stored as two array elements and word[-3] returns only half of it.
Proper way to make comparison is [...]
