# get multiple items from a list from operator import itemgetter my_list = [ " Get ", " Real ", " With ", " Python "] x=itemgetter( 1, 3 ) (my_list) print(x) # ( ' Real ', ' Python ' )