Question: Write a function slice _ from ( string: str , start: int, end: int ) - > str which returns the characters in string from
Write a function
slicefromstring: str start: int, end: int str
which returns the characters in string from index start up to but not including, index end.
Note that this characteristic of including the character at the start index, but excluding the one at the end index, is the default slicing behavior.
Write a function
reversestringstring: str str
which returns the characters in string in reverse order.
To obtain credit for the slicefrom and reversestring task, you must only use a single slice statement.
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
