1. List fruits = [‘apple’, ‘banana’, ‘coconut’, ‘cherry’, ‘orange’]. Please find fruit is cherry and show result
‘Fruit Cherry position 4 in list’
# Please find fruit is cherry in list fruits
fruits = ['apple', 'banana', 'coconut', 'cherry', 'orange']
2. List fruits = [‘apple’, ‘banana’, ‘coconut’, ‘cherry’, ‘orange’]. Please delete item fruit is ‘banana’ and show result new list [‘apple’, ‘coconut’, ‘cherry’, ‘orange’]
# Please delete item fruit is 'banana' and show result new list ['apple', 'coconut', 'cherry', 'orange']
fruits = ['apple', 'banana', 'coconut', 'cherry', 'orange']
3. List a = [5, 25, 3, 8, 17, 100, 78, 1, 55, 9]. Please find min, max in list a and show (min number, position) (max number, position)
# Please find min, max in list a and show (min number, position) (max number, position)
a = [5, 25, 3, 8, 17, 100, 78, 1, 55, 9]
4. List a = [0, 5, 1, 11, 15, 17, 20, 100, 28, 33, 7]. Please find numbers is even, odd
# Please find numbers is even, odd
a = [0, 5, 1, 11, 15, 17, 20, 100, 28, 33, 7]
5. List a = [2, 0, 8, 5, 12, 20, 3, 11, 55, 200, 120, 100, 177]. Please sort list a ascending and descending
# Please sort list a ascending and descending
a = [2, 0, 8, 5, 12, 20, 3, 11, 55, 200, 120, 100, 177]