Computer Science

Find the errors(s)

a = bool (0) 
b = bool (1) 
print (a == false)
print (b == true)

Python Data Handling

23 Likes

Answer

false and true are invalid literals in Python. The correct boolean literals are False and True.

Answered By

14 Likes


Related Questions