What do you understand by traversing a string ? Ans. Traversing a string means
Answers
Answered by
2
take digest of navneet or open text book answer will there
Answered by
1
Answer:
Iterate over string with index using range()
range(len (stringObj) ) function will generate the sequence from 0 to n -1 ( n is size of string) . Now iterate over this sequence and for each index access the character from string using operator [] i.e.
Similar questions