Computer Science

Consider the following expression:

x = "and" * (3 + 2) > "or" + "4"

What is the data type of value that is computed by this expression?

Python Data Handling

30 Likes

Answer

The data type of value that is computed by this expression is bool.

    x = "and" * (3 + 2) > "or" + "4"
⇒ x = "and" * 5 > "or" + "4"
⇒ x = "andandandandand" > "or4"
⇒ x = False

Answered By

20 Likes


Related Questions