summaryrefslogtreecommitdiff
path: root/progs/a909.py
blob: 4eb1d5b74b3b963711a2e3a91545c9129fe4af8e (plain)
1
2
3
4
5
6
7
8
9
def last_occurence_char(string,char):
 flag = -1
 for i in range(len(string)):
     if(string[i] == char):
         flag = i
 if(flag == -1):
    return None
 else:
    return flag + 1