fruits = ['りんご', 'いちご', 'みかん','メロン',
          'なし', 'ぶどう', 'もも', 'バナナ']

print(fruits[:2])
print(fruits[2:])
print(fruits[:-2])
print(fruits[::-1])