Apply De Morgan's Laws
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Apply De Morgan's Laws. Given a = True and b = False, show that 'not (a and b)' equals 'not a or not b', and 'not (a or b)' equals 'not a and not b'. Print each pair of equivalent results.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.