Python:
Assume that a variable named plist has been defined and is associated with a list that consists of 12 elements.
Assume further that k refers to an int between 2 and 8. Assign 22 to the element just before the element in plist whose index is k .