Home » Programming Language (coding) » Python MCQs » Which of the following expressions results in an error?

Which of the following expressions results in an error?

Which of the following expressions results in an error?

A. int(‘1011’)
B. int(1011,2)
C. int(‘1011’,23)
D. int(1011)

Answer: B. int(1011,2)

Take Part in Discussion:

Your email address will not be published.

Solve : *
20 ⁄ 5 =