Computer Science, asked by shreyasen2503, 2 days ago

WAP to find out the largest number in a tubal and also to print its index​

Answers

Answered by Anonymous
0

Answer:

Explanation:

))Sometimes, while dealing with tuples, we can have problem in which we need to extract only extreme K elements, i.e maximum and minimum K elements in Tuple. This problem can have applications across domains such as web development and Data Science. Let’s discuss certain ways in which this problem can be solved. Input : test_tup = (3, 7, 1, 18, 9), k = 2 Output : (3, 1, 9, 18)Input : test_tup = (3, 7, 1), k=1 Output : (1, 3)  l

Similar questions