In the Array class of the arrays.py file complete the following:…
Question Answered step-by-step In the Array class of the arrays.py file complete the following:… In the Array class of the arrays.py file complete the following:Modify the __init__ method to add an instance variable logicalSize.This variable is initially 0 and will track the number of items currently available to users of the array.Define the size() method.This method should return the array’s logical size.The method __len__should still return the array’s capacity or physical size.To test your program run the main() method in the arrays.py file.Your program’s output should look like the following:Physical size: 10Logical size: 0Items: [None, None, None, None, None, None, None, None, None, None]Grading Python code in the code editor. Use the Run button to execute and run the code. To review your progress, open up the “Tasks” panel on the left to view the curated list of tasks for the project.Once you are happy with the test results, click Submit and then the Confirm button to submit your project for grading. Computer Science Engineering & Technology Python Programming COP 3530 Share QuestionEmailCopy link Comments (0)


