Computer Applications
What are the two Boolean literals in Python ?
Python Funda
2 Likes
Answer
The two Boolean literals in Python are true and false.
Answered By
2 Likes
Related Questions
What are string-literals in Python ? How many ways, can you create String literals in Python ?
What is meant by a floating-point literal in Python ? How many ways can a floating literal be represented into ?
What kind of program elements are these: 'a', 4.38925, "a", main( ) ?
Aashna has written following code :
a = 5 b = '5' c = "5" d = 5.0(a) What are the data types of a, b, c, d ?
(b) Are a, b, c, d storing exactly the same values ? Why/why not ?
(c) What will be the output of following code based on values of a, b, c and d ?
print a == b
print b == c
print a == d
(d) Discuss the reasons behind the output of part (c).