Q.

What will be the value of x in the
following Python expression?
x = int(43.55+2/2)

A. 43
B. 44
C. 22
D. 23
Answer» B. 44
Explanation: The expression shown above is
an example of explicit conversion. It is
evaluated as int(43.55+1) = int(44.55) = 44.
Hence the result of this expression is 44.
1.4k
0
Do you find this helpful?
10

Discussion

No comments yet