Coding De Morgan’s Laws

Introduction to De Morgan’s laws

In this lesson, we’ll learn about De Morgan’s laws based on Boolean algebra and logical expression.

Augustus De Morgan was a contemporary mathematician of George Boole. Although he didn’t create the laws using his name, they are credited to him because he was the creator.

De Morgan’s laws are based on Boolean algebra, and in every programming language, they’re widely applied and equally valid. The rule states that we can write the way we see below, where a and b are two boolean values (true or false):

Get hands-on with 1200+ tech skills courses.