DS&A

Data Structures and Algorithms

Booleans

Feb 052018

Boolean is a type of data, with only two possible values: true and false.

  • In Python, the type bool has values True and False.
  • In Java, the type boolean has values true and false.

Almost every programming language has Booleans, because they’re necessary for the checks, comparisons and other logical conditions in if/else statements and loops.(1)

Atom

hosted on werp.site