---
# System prepended metadata

title: '#LSEABL: Gitters (Week 6)'

---

---
# #LSEABL: Gitters (Week 6)
>[name=dabaq0x]
>[time=Sat, Jul 19, 2025 10:09 PM]

The week had us delving into new topics and interacting with new platforms that aren't uncommon to techies. Class ran three times this week but was packed with loads of things to learn.
## Day 1: Version Control
Version Control is a system that tracks and manages changes to files, especially code in software development projects. One of the most popular version control platforms today is Git/Github. 
:::info
Importance of Git/Github:
1. It tracks project progress as well as manages the changes made.
2. It helps minimise the chances of losing your files or changes made to them.
3. In the event theres a problem with the current version of a file being worked on, it allows for reverting to earlier versions of the file before the problem got written into it.
4. It allows for collaboration on projects.
:::
Below are some helpful git commands.
:::success
Git commands:
git init - to initialise the process
git commit - to save your changes
git add - to add files
git push - to send files to the specified repository
git status - to check the files
git log - to return all commits
git branch - to check the current branch
git rm --cached "filename" - to unstage(or remove) files
git checkout -b "branch name" - to create a branch
git checkout "branch name" - to switch branch
:::
In order to use these benefits on github, one has to connect one's computer to it. This is done by setting up the SSH.
![469012510_1063661795535841_1538629067201860818_2n](https://hackmd.io/_uploads/ryE6_5KIge.jpg)

As a closer, we were asked to write a readme file documenting the process we used to set up our git and connect it to our github. Then push the file to our preferred repository on github.
![Screenshot from 2025-07-14 17-08-59](https://hackmd.io/_uploads/r16zHcY8lx.png)

## Day 2: Python: Boolean and more
We started out by exploring some boolean examples and tasks. First we tried a demonstration of the operation using string variables.
```gherkin=
#boolean demonstration
name = "Tim"
print(bool(name))

Tim = "Single"
print(bool(Tim))

Single = ""
print(bool(Single))

Divorced = ''
print(bool(Divorced))
```
The above demonstration would output "True" for the first two and "False" for the next two.
We then proceeded to demonstrate it using numbers.
```gherkin=
#boolean demo
firstNumber = 69
print(bool(firstNumber))

secondNumber = 100
print(bool(secondNumber))

thirdNumber = 0
print(bool(thirdNumber))

fourthNumber = -0
print(bool(fourthNumber))
```
After that, we tried creating a simple calculator. first we coded in for addition then subtraction and in no time, we were able to run the same process for multiplication, division, exponential and floor division.
![Screenshot from 2025-07-20 00-26-37](https://hackmd.io/_uploads/BJGXcoKUee.png)
After we succesfully created and ran the code, we were asked to push it to our github.
![Screenshot from 2025-07-14 16-00-21](https://hackmd.io/_uploads/SJz0qjtIxe.png)
Next we were asked to run another task slightly more complex. It starts out with a fixed income amount but we are tasked to code the deductions to the allowance amount as the user spends on stipulated expenses.
![Screenshot from 2025-07-19 23-36-20](https://hackmd.io/_uploads/HySW3jt8le.png)

## Day 3: Test Day
Much like last week, the day  came with two tests;
The first being a timed multiple choice questions while the other was a hands on test which was also timed.
The second test consisted of five tasks, each timed less than five minutes.

Question 1: We were asked to prompt a user to input their social media bio and make it so the program outputs the length of the bio, the first twenty characters of the bio, the last 20 characters of the bio.
```gherkin=
#String step slicing
bio = input("Please input your bio:\n")
print(len(bio))
print(bio[:20])
print(bio[-21:-1])

```
Question 2:
We were asked to write a program to collect input of the number of customers as well as the price of the bill and then split the bill equally between them and output the number of customers and their respective contributions to the bill.
```gherkin=
#bill splitting prompt
bill = input("Please input the total bill amount\n")
customers = input("Please input total number of customers\n")
contribution = float(bill) / int(customers)
print(f"The total bill is {bill}, and each person will pay {contribution}")
```
Question 3:
We were asked to write a program to collect input of a user's favorite movie, and how many times they've seen it then output the title in all caps, how many times theyve watched it and the last three letters of the movie title.
```gherkin=
movieTitle = input("Please input your favourite movie.\n")
number = input("How many times have you watched it?\n")
print(f"I've watched {movieTitle}, {number} times.")
print(movieTitle.upper())
print(movieTitle[-3:])

```
## Conclusion
This weeks test exposed the fact that we all need to really pay attention to details and improve our efficiency under pressure. I suppose it's more and more practice until we all touch perfection or at least excelence.