Computer Science

Find the errors(s)

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

Python Data Handling

26 Likes

Answer

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

Answered By

16 Likes


Related Questions