Menu
Home
AI
Machine Learning
Data Science
Python
Interview Questions
Python question of the day
Which of the following statements give the output
True
?
bool(-1)
bool(None)
bool({})
bool(bool(0))
Explanation:
bool for any integer other than zero will evaluate to be
True
Any empty list/dict/set/tuple will evaluate to be
False
Top 100 python interview questions: