Data Types: Boolean
Good morning,
First, what some students are doing to help...
TODAY...
Another data type... boolean.
Boolean variables have only two possible values True or False
Consider
x = 100
y = 99
z = x > y we are ASSIGNING a BOOLEAN value to the variable z.
The comparison operation ">" is asserting that the magnitude of x is greater than the magnitude of y. Given the values assigned to x and y, this is a true assertion.
Hence, z has the value "True" and a variable Type of Boolean.
Consider...https://trinket.io/python/dc606c6790 Links to an external site.
Humans, at least some of us, use logic to reach conclusions. One defines certain terms, asserts certain premises, and via step-by-step process determines the validity of our conclusion.
This process is referred to as deduction.
It differs from science, where one observes patterns, experiments, collects data, and then reaches conclusions. The scientific method is referred to as induction.
Consider...
http://intrologic.stanford.edu/dictionary/deduction.html Links to an external site.
http://intrologic.stanford.edu/dictionary/induction.html Links to an external site.