Computer Science

Which of the following expressions evaluates to False ?

  1. not(True) and False
  2. True or False
  3. not(False and True)
  4. True and not(False)

Python Funda

2 Likes

Answer

not(True) and False

Reason

  1. not(True) and False evaluates to False and False, which is False.
  2. True or False evaluates to True.
  3. not(False and True) evaluates to not(False), which is True.
  4. True and not(False) evaluates to True and True, which is True.

Answered By

1 Like


Related Questions