Question: Exercise 6 . 2 . 2 Three Slices = = = = = = = = = = = = = = = = =
Exercise Three Slices
Design and implement a function called threeslices that take a list object as its parameter and slice it into three equal parts. Your function must work correctly with the following scenario:
An enpty list.
A list with two elements only.
A list with more than two elements.
A slice cannot have more than one extra element than the other slices.
The function return the three slices.
# Complete the following function.
def threeslicesmylist:
return
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
