MCQs > IT & Programming > Python > 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)

Python MCQs

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)

Answer

Correct Answer:

STRALIA 

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it