Create the ~/ops445/lab4/lab4d.py script. The purpose of this script is to demonstrate creating and manipulating strings. There
Fantastic news! We've Found the answer you've been seeking!
Question:
- Create the~/ops445/lab4/lab4d.pyscript. The purpose of this script is to demonstrate creating and manipulating strings. There will be four functions each will return a single string.
- Use the following template to get started
- The script should contain four functions (use your own argument names):
first_five():
- Accepts a single string argument
- Returns a string that contains the first five characters of the argument given
last_seven():
- Accepts a single string argument
- Returns a string that contains the last seven characters of the argument given
middle_number():
- Accepts a integer as a argument
- Returns a string containing the second and third characters in the number
first_three_last_three():
- Accepts two string arguments
- Returns a single string that starts with the first three characters of argument1 and ends with the last three characters of argument2
Output should be as shown below
Related Book For
Auditing A Business Risk Approach
ISBN: 978-0538476232
8th edition
Authors: Karla Johnstone, Audrey Gramling, Larry Rittenberg
Posted Date: