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

26 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

17 Likes


Related Questions