Computer Science, asked by harshitgaming, 3 months ago

7.
>>>print('10'+'20') will give the output
C. 2010
b. 1020
a. 30​

Answers

Answered by Anonymous
1

Answer:

This may helps you plz mark me as brainliest

Explanation:

The relevant rules governing “and” and “or” are this:

If the first operand of an “or” expression is true, return the first operand. Otherwise, evaluate and return the second operand.

If the first operand of an “and” expression is false, return the first operand. Otherwise, evaluate and return the second operand.

Furthermore, any value is interpreted as “false” for the above purposes if it is 0, 0.0, None, False, or an empty collection. Otherwise, it is interpreted as “true” for the above purposes. So, 10 and 20, being nonzero numbers, are “true.”

Therefore “print (10 or 20)” produces “10”.

And “print (10 and 20)” produces “20”.

Answered by Ijack
0

Answer:

b) 1020 is the correct answer...

Similar questions