---
# System prepended metadata

title: 'Activities of Week six at the Blockfuse Labs:'

---

# Activities of Week six at the Blockfuse Labs: 
# Version Control, Git and GitHub and Arithmetic  Operators

**What is Version Control?** It is a software engineering practice that involves controlling, organizing and tracking of different history of computer files. Version control is important because it helps the individual to organize, control and track history of his project(file).

**What is git?** Git is a free, open-source version control system that tracks changes to projects. It is used by developers to store and collaborate on code.

**What is GitHub?** GitHub is a remote platform for work collaboration. The difference between git and github is that, while Git is a tool you use to work locally, Github is a remote platform for work collaboration.

While installing git, it is worthy to note that the user can come across some errors during the installtion process but there is no need to panic, just read through the error message to be able to identify the problem and also read through the suggestions on how they can be fixed. The user can also type: git --help to see the options available to fixing some problems with the setup. An example of an error that may occur is the - Fatal: not a git repository - What this simply means is that the folder is not recognized by git. For it to be recongnized, the user has to initialize the folder by typing: git init -->to start tracking changes in the folder.

**Logical Operators**
In Python, logical operators are used to combine conditional statements, allowing you to perform operations based on multiple conditions. The Python language features various logical operators, but the most popular ones are the OR operator, the AND operator, and the NOT operator. These operators are used to combine or manipulate boolean expressions (expressions that evaluate to True or False).
The logical opeartor most times uses the greater than > or less than < symbols to judge these conditions. Below is example of the 'AND' logical operator whereby, both conditions has to be true for it to pass. ![logical-ope](https://hackmd.io/_uploads/S1JQkSjIgl.png)


**Arithmetic and Assignment Operator** 
We use arithmetic operators to perform common mathematical operations on numerical values in Python. These operators include:

a. the Addition (+) operator, which adds two operands together. Note that in Python, the plus (+) symbol is known to be overloaded, meaning that it has multiple uses. It can be used to concatenate strings, among other things.

b. the Subtraction (-) operator is used to subtract the second operand from the first.

c. the Multiplication (*) operator is used to multiply two or more operands.

d. the Division (/) operator divides the first operand by the second and always returns a float (decimals).

e. the Modulus (%) operator returns the remainder of the division of the first operand by the second. That is, only the remainder of the value is used in this case.

f. the Exponentiation `(**)` operator is used to raise the first operand to the power of the second operand. Example `2**3` is the same as `2*2*2`.

g. the Floor Division (//) operator divides the first operand by the second and rounds down the number to the nearest lower integer.

The  above listed arithmetic operators can be used to create a basic calculator in Python (though not functional but for practical purposes).

**Other Operators**

We also have the assignment operator used to assign values to variables. The assignment operator is denoted by the equals sign (=), which assigns the value on its right-hand side to the variable on its left-hand side. For example: 
`amount = 100`. 
Where amount is the variable, the equal sign (=) is the assignment operator and 100 is the value. 

There is the ***compound assignment operator***, which is a shorthand way to modify a variable's value based on its current value. The following are examples of compound assignment operators: 
`+=, -=, *=, /=, %= //=, **=, `etc. The Python file attached shows examples of how these arithmetic operators are used.
![Allowance](https://hackmd.io/_uploads/H1wV94s8eg.png)

**Conclusion**
In conclusion, Python follows a specific order of operations (precedence) known as the PEMDAS rule. This acronym stands for Parentheses, Exponents, Multiplication and Division, Addition and Subtraction. The Arithmetic operators always take precedence over logical operators. Python will always evaluate the arithmetic operators first (exponential or `**` is highest, then multiplication/division, then addition/subtraction). Lastly, are the logical operators. 