print('List method')

print('no.1')
fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
print(fruits.count('apple'))

print ('No.2')
print(fruits.count('tangerine'))

print ('No.3')
print(fruits.index('banana'))

print ('No.4')
print(fruits.index('banana', 4))

print('No.5')
fruits.reverse()
print(fruits)

print('No.6')
fruits.append('grape')
print(fruits)

print('No.7')
fruits.sort()
print(fruits)

print('No.8')
print (fruits.pop())


