Computer Science
What would following code fragments result in? Given x = 3.
(a) 1 < x
(b) x >= 4
(c) x == 3
(d) x == 3.0
(e) "Hello" == "Hello"
(f) "Hello" > "hello"
(g) 4/2 == 2.0
(h) 4/2 == 2
(i) x < 7 and 4 > 5.
Python Data Handling
31 Likes
Answer
(a) True
(b) False
(c) True
(d) True
(e) True
(f) False
(g) True
(h) True
(i) False
Answered By
17 Likes
Related Questions
Given three Boolean variables a, b, c as : a = False, b = True, c = False. Evaluate the following Boolean expressions:
(a) b and c
(b) b or c
(c) not a and b
(d) (a and b) or not c
(e) not b and not (a or c)
(f) not ((not b or not a) and c) or a
Write following expressions in Python:
Write following expressions in Python:
Differentiate between (555/222)**2 and (555.0/222)**2.