Computer Science, asked by mask4854, 5 hours ago

Predict the output:

a=10

b=20

print(a>b and a>100)

Answers

Answered by pratichi
1

False

Explanation:

in python it should give the answer in the form of true and false.

a>b  (10>20 which turns out to be false)

a>100 (10>100 which also turns out to be false)

and in case of logical operators we know AND stands "true" only and only if both conditions turns out to be true.

Here we see both the conditions are FALSE

Hence, the required output is "False" .

Similar questions