CBSE Class 11 Computer Science Question 135 of 173

Data Handling — Question 24

Back to all questions
24
Question

Question 18b

Find the errors(s)

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

Answer

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

Answer