def slice_list(list): return list[2:4] if len(list) > 3 else [] x=slice_list(['lion', 'eagle', 'army', 'navy', 'marine']) print(x)