What will be the output of the following program?
def country(*abc):
if len(abc) == 1:
item = abc[0]
def f(obj):
return obj[item]
else:
def f(obj):
return tuple(obj[item] for item in abc)
return f
selection = []
selection = country(slice(2, None))('AUSTRALIA') print (selection)
Correct Answer:
STRALIA
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions