The NOT operator is a unary operator, meaning it takes only…