Computer Science, asked by Shinimagi, 5 months ago

write a command to get the first location of a character ch in the string str​

Answers

Answered by guptasparshi016
0

Answer:

To get the first N characters of the string, we need to pass start_index_pos as 0 and end_index_pos as N i.e. The value of step_size will be default i.e. 0. It will slice the string from 0th index to n-1-th index and returns a substring with first N characters of the given string.

Similar questions