Q:1. In python,
1.
2.
3.
4.
Q:2. Assume that the "min" function computes the minimum of two values, and "max" function computes the maximum of two values. Let x1, x2 be 2 distinct integers. What can you say about the following program (using python 3.X version):
y1 = min(x1, x2)
y2 = max(y1, x1)
1.
2.
3.
4.
Q:3. Which of the below statement/s is/are true for global keyword in python ?
1.
2.
3.
4.
Q:4. What will be the output of the following code:-
def keywordExample(x=1, y=2, z=4):
sum = x+y
min = sum - z
print (min)
keywordExample(y=8,x=4,z=y)
1.
2.
3.
4.
Q:5. Which of the following statement is false for string in python:
1.
2.
3.
4.
0 Comments