---
# System prepended metadata

title: LEARNING AT BLOCKFUSE LABS WEEK SIX(6)

---

# LEARNING AT BLOCKFUSE LABS WEEK SIX(6)

This week was a little divert you may see something bit different for this week but still gonna go through some new part in python. so this week we started with git and github we learn how to install git on our computers, how to set it up, add user name, email and other stuff. we look at what is git and what is github we also look at the difference between the two which am gonna be talking about them below. but first we started with version control and am gonna also start with it here.

##### VERSION CONTROL:
Version control is a system that track and manage changes to files, especially code.
##### GIT:
Git is a distributed version control system designed to track changes in source code during software development.
##### GITHUB:
Github is a remote platform that store, share and connect developers together on a project.
##### THE DIFFERENCE BETWEEN GIT AND GITHUB:
Git is a free and open source version control tool that you can install locally on your personal computer, while GitHub is a pay-for-use online service built to run Git in the remotely.
##### HOW TO INSTALL AND START USING GIT ON YOUR COMPUTER:
- To install git on your computer you will used the command:
```
Apt-get install git
```
- To set up your user name and email globaly you will used the command:
```
git config --global user.name <your name>
git config --global user.email <mail@example.com>
```
- To generate the SSH key which allow you link the local to the remote that is the Git to the Github you will used the command below 
```
ssh-keygen -t ed25519 -C "your name"
```
- To get your agent Paid type and enter
```
eval $(ssh-agent -s) It displays - Agent pid 532620
```
- To add SSH public/private key to the ssh-agent on local device
```
ssh -add ~/.ssh/id_ed25519
```
Then it will displays - "identity added /home/Julius/.ssh/id_ed25519 "your name"
- To add SSH key to the remote account you will used the command:
```
Cat ~/.ssh/id_ed25519.pub
```
Congratulation your git and github set up is done.
We learn how to push and pull too, so to push you will first initialize your git with this command:
```
git init
```
then you will add the files or the directory you want to start tracking using the command:
```
git add <names of file or . to add whole directory>
```
Now you save it using the command:
```
git commit -m "commit massage"
```
then you add the brach using the command:
```
git branch main 
```
Now is time you add it to the remote using the command:
```
git remote add origin git@github.com:<your name><the repositry name> .git
```
Is now time you push to the remote with the command:
```
git push -u origin main
```
congratulation you made you first push on github
now is time to show how to pull, to make a pull is much easire than pushing see how is done below:
```
git pull git@github.com:<your name>/<repositary name>
```
just that simple and you have make a pull. Blockfuse labs make me do this. Now the other things we learn in the python aspect are:
##### BOOLEANS:
Booleans represent one of two value: True or False
##### Boolean values
In programming you often need to know if an expression is True or False. You can evaluate any expression in Python, and get one of two answers, True or False. When you compare two values, the expression is evaluated and Python returns the Boolean answer:
```
print(10 > 5)
print(17 == 9)
print(10 < 2) 
```
We where thougt alot on boolean this is just small part of it there are couple of things you can do with the bool data type.
##### Operators:
Operators are used to perform operations on variables and values. and we where thougt only few of it in the week which the are:
- Arithmetic operators
- Assignment operators
- Comparison operators
###### The Arithmetic operators
Arithmetic operators are used with numeric values to perform common mathematical operations

| Operator | Name 	                |Example|
| -------- | ----------------------- | ---  |
| +        | Addition 	             |x + y |
| -        | Subtraction 	         |x - y |
| *        | Multiplication 	     |x * y |
| %        | Modulus 	             | x % y|
| /        | Division 	             |x / y |
| **       | Exponentiation 	     |x ** y|
| //       | Floor division 	     |x // y|

###### The Assignment operators
Assignment operators are used to assign values to variables: 	

| Operator | Example|
| ----- | --------- |
| =     | x = 5     |
| +=    | x += 5    |
| -=    | x -= 5 	|
| *=    | x *= 5    |
| /=    | x /= 5    |
| %=    | x %= 5    |
| //=   | x //= 5   |

###### The Comparison operators
Comparison operators are used to compare two values:
 	 	

| Operator | Name                   | Example  |
| -------- | -----------------------| -------- |
| ==       |  Equal                 |   x == y | 
|!= 	   |Not equal               | x != y   | 
|> 	       |Greater than            | x > y    | 
|< 	       |Less than 	            | x < y    |
|>= 	   |Greater than or equal to| 	x >= y |
|<= 	   |Less than or equal to 	|x <= y    |

Their are other operators too but this is the one for now. Blockfuse labs is doing the best of best 
Stay turn for next week update

# NEVER SETTLE :100: 