Python Programming - Data Types - Discussion
Discussion Forum : Data Types - General Questions (Q.No. 53)
53.
What is the purpose of the
bool()
function?
Answer: Option
Explanation:
The
bool()
function can be used to convert a number to a boolean. 0 becomes False, and any non-zero value becomes True.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers