1. A folder of python modules
2. A set of programs making use of Python modules
3. A set of main modules
4. A number of files containing Python definitions and statements
A folder of python modules
1. A package can have subfolders and modules
2. Each import package need not introduce a namespace
3. import folder.subfolder.mod1 imports packages
4. from folder.subfolder.mod1 import objects imports packages
Each import package need not introduce a namespace
1. [1,2,3,4][1,2,3,4]
2. [1, 2, 3, 4]None
3. Syntax error
4. [1,2,3][1,2,3,4]
[1, 2, 3, 4]
None
1. True
2. False
False
1. [13, 56, 17, [87], 45, 67]
2. [13, 56, 17, 87, 45, 67]
3. [13, 56, 17, 87,[ 45, 67]]
4. [13, 56, 17, [87], [45, 67]]
[13, 56, 17, [87], 45, 67]
1. 180[(45),(45),(45),(45)]
2. (45,45,45,45)[45,45,45,45]
3. 180[45,45,45,45]
4. Syntax error
180
[45,45,45,45]
1. [[3],[7]]
2. [1,2,3,4]
3. Error
4. [10]
[1,2,3,4]
1. TrueTrue
2. FalseTrue
3. FalseFalse
4. TrueFalse
True
False
1. Error
2. [1,4]
3. [5]
4. 5
5
1. [‘Bangalore’, ‘Pune’, ‘Hyderabad’]
2. [‘Bangalore’, ‘Pune’, ‘Delhi’]
3. [‘Bangalore’, ‘Mumbai’, ‘Delhi’]
4. [‘Bangalore’, ‘Mumbai’, ‘Hyderabad’]
[‘Bangalore’, ‘Pune’, ‘Delhi’]