1. [1] [2]
2. [49] [50]
3. Syntax error
4. [[1]] [[2]]
[1] [2]
1. 561
2. 5
3. 12
4. Syntax error
12
1. 5 5 1 2 3
2. 5 1 2 3 4
3. 2 3 4 5 1
4. 2 3 4 5 5
2 3 4 5 5
1. 3[44, 2, 3]
2. 1[1,2,3]
3. 3[1,2,3]
4. 1[44,2,3]
3
[44, 2, 3]
1. 5
2. 3
3. 4
4. 0
4
1. [‘Apple’, ‘Ball’, ‘Cobra’]
2. [‘Ball’, ‘Apple’, ‘Cobra’]
3. [‘Cobra’, ‘Apple’, ‘Ball’]
4. Invalid syntax for sort()
[‘Ball’, ‘Apple’, ‘Cobra’]
1. 1: 2: 3:
2. Exception is thrown
3. One Two Three
4. 0: One 1: Two 2: Three
0: One 1: Two 2: Three
1. Denoted by triple quotes for providing the specification of certain program elements
2. Design and implementation of specific functionality to be incorporated into a program
3. Defines the specification of how it is to be used
4. Any program that reuses code
Design and implementation of specific functionality to be incorporated into a program
1. Provides a means of reuse of program code
2. Provides a means of dividing up tasks
3. Provides a means of reducing the size of the program
4. Provides a means of testing individual parts of the program
Provides a means of reducing the size of the program
1. Client
2. Docstring
3. Interface
4. Modularity
Client