Extract Maximum and Minimum K Elements

# Introduction In this lab, you are required to write a program that takes an input tuple of integers and a value 'k', and extracts the smallest 'k' elements and largest 'k' elements from the tuple, returning them in a new tuple.

|60 : 00

Click the virtual machine below to start practicing