1. 120
2. Nothing is printed
3. Error, method factorial doesn’t exist in math module
4. Error, the statement should be: print(factorial(5))
Error, the statement should be: print(factorial(5))
1. Python first searches the global namespace, then the local namespace and finally the built-in namespace
2. Python first searches the local namespace, then the global namespace and finally the built-in namespace
3. Python first searches the built-in namespace, then the global namespace and finally the local namespace
4. Python first searches the built-in namespace, then the local namespace and finally the global namespace
Python first searches the local namespace, then the global namespace and finally the built-in namespace
1. 3
2. 4
3. 4.0
4. 3.0
4
1. 3
2. 4
3. 4.0
4. 3.0
3
1. 1
2. 1.0
3. -3
4. -3.0
-3.0
1. -3.4
2. 3.4
3. 3
4. -3
3.4
1. sometimes
2. always
3. never
4. none of the mentioned
sometimes
1. 720
2. 6
3. [1, 2, 3, 6]
4. error
error
1. 0
2. 1
3. error
4. none of the mentioned
1
1. 24
2. 1
3. error
4. none of the mentioned
24