CC 104
Array Operation
Write a program that demonstrate the array operations in Python.
Note:
Program Name: LastNameFirstName_ArrayOperation.py
Create an empty array.
Prompt “Array is empty” if no elements in the array.
The program continues to loop unless Exit is selected.
If the inputted
Program Output:
If 1 is selected, add new element in the array
If 2 is selected, delete an element in the array.
If the element to delete not in the array, prompt message “Element not in the list”
If 3 is selected, search an element in the array.
If element is the list, prompt a message.
CC 104
Array Operation
If element is not the list, prompt a message
If 4 is selected, print the elements in the array.
If 5 is selected, terminate the program.
If no, the program will continue to loop.