print(text_string[:10]) #If in the beginning there is blank then consider as Zero print(text_string[0:]) #If in the end there is blank then consider as len-1 ...
- start : index to begin slice (inclusive). Defaults to 0. - end : index to stop slice (exclusive). Defaults to len(list). - step : interval (stride). Defaults to 1 ...