Contact: aviboots(AT)netvision.net.il
39,924 questions
51,857 answers
573 users
s = "c++ c php python golang python nodejs rust python dart" pos = s.rfind("python") if (pos != -1): print(pos) else: print("not found") ''' run: 43 '''
s = "c++ c php python golang python nodejs rust python dart" pos = s.rindex("python") print(pos) ''' run: 43 '''