(You can close this window)
This session will automatically time-out after 5 minutes and can no longer be accessed, start immediately.
python
Extract only extreme K elements, i.e maximum and minimum K elements in Tuple.
Input : test_tup = (3, 7, 1, 18, 9), k = 2
Output : (3, 1, 9, 18)
Output : (1, 3)