PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
SALE
This blog is available for sale. More than 150 published articles. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
Which of the following expressions results in an error?
A. int(1011)
B. int('1011',23)
C. int(1011,2)
D. int('1011')
Show Answer
Next Question
Correct Answer:
C
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.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap