Which of the following expressions will evaluate to 2?

Consider the following code.

x = oat (‘23.42’)

Which of the following expressions will evaluate to 2?
A . int(x) + False
B . bool(x) + True
C . str(x)
D . bool(x)

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments