02 - Ex 05

Run Settings
LanguagePython
Language Version
Run Command
#Tìm vị trí của ký tự 'x' (bất kỳ) cuối cùng trong string s. string = 'asfasfBJFA934adf' character = input('typing a character need to find:\n') s1 = string.rfind('{0}'.format(character)) if s1 == -1: print('the string doesn\'t have this character') else: print('the last position of character: {0}'.format(s1))
Editor Settings
Theme
Key bindings
Full width
Lines