Question: Exercise 8 . 3 . A string slice can take a third index that specifies the step size ; that is , the number of
Exercise A string slice can take a third index that specifies the step size; that is the number
of spaces between successive characters. A step size of means every other character; means every
third, etc.
wwwdbooks.org
Chapter Strings
fruit 'banana'
fruit::
bnn
A step size of goes through the word backwards, so the slice :: generates a reversed string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
