Question: Create a function called stringPractice ( ) that accepts a string. Your function should determine the 4 th and 5 th characters of that string

Create a function called stringPractice() that accepts a string. Your function should determine the 4th and 5th characters of that string and return it. For example, stringPractice('blackberries are great') would return the string ck. You may assume the user will always pass a string that has at least 5 characters in it. You must use the slicing operator : to obtain the substring.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!