How to find the index of the last space in string with Python

1 Answer

0 votes
s = "Python is an interpreted high-level programming language"
 
ch = ' '
 
print(s.rfind(ch))
 
 
      
      
'''
run:
      
47
 
'''

 



answered Feb 16, 2022 by avibootz

Related questions

1 answer 86 views
1 answer 91 views
1 answer 89 views
1 answer 87 views
1 answer 83 views
...