def num(list,c):
    " return character number in a given list "
    if ord(c)>65 and ord(c)<91:
        c=chr(ord(c)+32)
    for i in range(len(list)):
        if list[i]==c:
            return i
    return False
 return character number in a given list 
recipes/Python/577606_SMSEncryption/recipe-577606.py