Advertisements
Advertisements
प्रश्न
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
print((0 < 6) or (not(10 == 6) and (10 < 0)))
टीपा लिहा
Advertisements
उत्तर
print( (0 < 6) or (not (10 == 6) and (10 < 0) ) )
print(True or (not False and False))
print(True or (True and False))
# not will be evaluated before and/or.
print(True or False)
print(True)
Therefore, the output will be 'True'.
shaalaa.com
Relational Operator (>,>=,<=,=,!=)
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
