Question: Write a function that efficiently strips the first two characters of a string and the last two characters of a string. Returning an empty string
Write a function that efficiently strips the first two characters of a string and the last two characters of a string. Returning an empty string should be an acceptable return value. Test this function with a series of different inputs.
Can you write a program, or a function, that uses both positive and negative indexing? Is there any penalty for doing so?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
