You can create new functions if you see they are necessary.
☑Kizspy.me
Sample input and output:
Please enter the size of the array: 5
Please enter the size of the array: 5
a[0]=10
a[0]=2
a[1]=15
a[1]=15
a[2]=1
a[2]=7
a[3]=25
a[3]=25
Zoom
a[4]=48
Output for marking:
OUTPUT:
0
a[4]=11
Output for marking:
OUTPUT:
3
Question 4: (2 marks)
The given Q4.py file contains statements about input and output data of objects from the Suitcase class.
You should write the statements to complete the Suitcase class as described below:
-id: int
+ 100%
Suitcase
Where:
Suitcase(id:int,
name:str,
capacity:float,
Close