0
What is the output of the below code in Python?
a='0' print(bool(a))
4 Answers
0
the only string that evaluates as False is the empty string. So the output is True
0
false
- 1
if you do this...
a='0'
print(not bool(a))
the only the output is false
- 1
here is the extra-modified code with all possible explaination of bool command
check it out...
https://code.sololearn.com/cChMpVIKcJsS/?ref=app