Question: Turn the python code to the sample output!! Thx a lot! Develop a Fixed-Size Array-List, with the given Python file A1B1.py. Students have learnt how

 Turn the python code to the sample output!! Thx a lot!Develop a Fixed-Size Array-List, with the given Python file A1B1.py. Students havelearnt how the list is implemented with dynamic array (variable-length array) inour course. In this part, students are required to implement a Fixed-Sizeversion of Array-List: - We are not enlarging the list if it

Turn the python code to the sample output!! Thx a lot!

Develop a Fixed-Size Array-List, with the given Python file A1B1.py. Students have learnt how the list is implemented with dynamic array (variable-length array) in our course. In this part, students are required to implement a Fixed-Size version of Array-List: - We are not enlarging the list if it is full for adding more elements. GIVEN an uncompleted Fixed-Size Array-List in A1B1.py (based on the one in our lecture notes, Complete this Fixed-Size Array-List with the Extra Operations below (methods of the class): At least one line of simple comment for each extra operation required MA1B1.py \# Remark: Position index of elements starts from 1 class AList: \# defining a class of FIXEDSIZE-Array-List defSelf.plist=inSize=3):#constructor,defaultsize=3(Nize#newaPythonListtoholddataself.Last=0self.capacity=insize#Thepositionofthelastelement#Thecurrentcapacityofthetist \# simple comment HERE def insertL(self, elt, pos): \# Insert element, pos start from 1 pass \# TO BE DONE BY STUDENT \# simple comment HERE def appendl(self, elt): pasS \# TO BE DONE BY STUOENT \# simple comment HERE def searchFirstl (self, elt): pasS \# TO BE DONE BY STUOENT \# simple comment HERE def clearl(self): pass \# TO BE DONE BY STUDENT \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# END of STUONE' S WORK \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# def isEmptyL(self): \# Check if the list is empty or not return self. sizeL()==0 def isfulzL (self): \# Check if the list is full or not return self. sizel() == self. capacity def sizel(self): \# Return size of List (number of elements) return self. last

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!