GATEverse Practice, past papers & mock tests
GATE 2024 · session-1
Programming, Data Structures and AlgorithmsProgramming in PythonmediumMCQ2 marks
Consider the following Python function: ` def fun(D, s1, s2): if s1 < s2: D[s1], D[s2] = D[s2], D[s1] fun(D, s1+1, s2-1) ` What does this Python function fun() do? Select the ONE appropriate option below.
Save your progress

Related Programming, Data Structures and Algorithms PYQs