SyntaxFix
Write A Post
Hire A Developer
Questions
you can use rindex() function to get the last occurrence of a character in string
rindex()
s="hellloooloo" b='l' print(s.rindex(b))