The explanation for the code is actuality in the code
|
Concepts |
Coding is basically just telling a computer what to do, when to do it, and how to do it. And you need to specify basically everything or else it might not do what you want it to do. There are also a few core concepts for fundamental programming. The first are variables. Variables are simply put, is a storage location associated with a name. A variable can be defined and even changed. Also, Loops. Loops tells the computer to keep doing something until the end of time or until it is told to stop. There is also Boolean logic which has three operations, And, Nor, and Not. For the OR operator, as long as one of the value is True, then the expression evaluates to True. For the AND operator, the combination of two “True” values results in “True” all other combinations evaluate to False. The NOT operator is called the “complimentary” operator. It reverses the truth value of the variable.
|