Find last occurrence of character in string Python [duplicate] November 30, 2023 by Tarik You can use rfind: >>> "abcd}def}".rfind('}') 8