Question: ###################### STUDNET's WORK ###################### # simple comment HERE def isEmptyL(self): pass # TO BE DONE # simple comment HERE def appendL(self, elt): pass # TO

###################### STUDNET's WORK ###################### # simple comment HERE def isEmptyL(self): pass # TO BE DONE # simple comment HERE def appendL(self, elt): pass # TO BE DONE
# simple comment HERE def removeLastL(self): pass # TO BE DONE # simple comment HERE def searchL(self, elt): pass # TO BE DONE #######################################
2. Part B, A1B (10 marks) Write a Python program, with the given Python files. compuy Sue # Aones.py, for IDSA Assign 1 class Alist: # defining a class of Dynamic-Array-List # ... #**##****########*****# STUDNET'S WORK ##****##*####********* # simple comment HERE def isEmptyl (self): pass # TO BE DONE # AND MORE #*************** *************** 1 o Enhancing Array-List: Enhance and implement a List ADT (with Array-based approach), by modifying our given Python file AoneB.py (based on the one in our lecture notes, Alist.py) Extra Operations (methods of the class) to be implemented by Students: At least one line of simple comment for each extra operation required Operation (DLL) Description isEmptyL(): bool Check if the list is empty or not append(elt): Insert a new element elt into the end of the current list. removeLastL():elt Remove & return the last element elt of the list o Return None in case of empty list searchL(elt):int Search & return the position of the first occurrence of an input searching element elt. * Position starts from 1. Return - 1 if not exist. File AoneBT.py for basic running and testing # Aonect.py, for basic running and testing. # * DO NOT modify this given test file, except the STUDENT INFO part. # Main Testing Program from Aone import AList O def main(): print("=== A1B, Enhanced ArrayList, by
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
