Q.

Which of the following expressions results in an error?

A. int(1011)
B. int(‘1011’,23)
C. int(1011,2)
D. int(‘1011’)
Answer» C. int(1011,2)
Explanation: the expression int(1011,2) results in an error. had we written this expression as int(‘1011’,2), then there would not be an error.
1.7k
0
Do you find this helpful?
19

Discussion

No comments yet