How to print part of a string start from specific index in Python

1 Answer

0 votes
s = "c++ c php python golang python java"
  
index = 6

print(s[index: len(s)])
  
    
   
'''
run:
 
php python golang python java
   
'''

 



answered Oct 24, 2020 by avibootz
...