---
# System prepended metadata

title: Weekly Update – Week four

---

# Weekly Update- Week Four  

## Vim – Editor Mastery Begins
This week, I learned **Vim** and how to use it, its a powerful and efficient text editor used on the terminal .We focus on mastering its basic navigation and editing capabilities.

 For Navigating through vim we use the `h`, `j`, `k`, `l` for moving up-left-right and down.
 For Entering Insert mode we can use `i`, `a`, and `o`
 For Deleting we can use `x`, `dd`, `d$`
For Copying and pasting using `yy`, `p` which is done in the visual mode
For Saving and exiting we use `:w`, `:q`, `:wq`, and `:q!`

We when further to study Macros, which we Learned how to record macros with `q(letter)`, perform actions, and **replay them** using `@(letter)`
Macros is Useful for automating repetitive editing tasks across multiple lines with a correct recording of the commands.


## Python – First Step into Programming
I also began my journey into **Python programming**, one of the most beginner-friendly and versatile languages in the world.
We study a **Brief History of Python:** It was Created by Guido van Rossum in the late 1980s it Emphasizes code readability and simplicity and it is Widely used in web development, AI, data science, gaming and many more.

**My First python Program – Hello, World:**

 ` print("Hello, World!")`
 
 This is an example of a python program that outputs Hello, World! by the interpreter.
 
 You can run python scripts on the terminal by navigating to the folder where the script is save and running `Python3 (NameOfFile.py)` on the terminal.
**Naming Variables in python**
Variables in python are decleared dynamically : Example:

```
name = "Shalom"
age = 20
is_student = True

```
You can use any naming covention to name variables in python, e.g the Camel Case , the Snake case and Pascal. But a valid variable in python does not start with a number, cannot include special characters like %, $, &, - , and i can not be a keyword in python e.g (if, is, import etc)but it can start with an underscore (_), Capital or small letters followed by numbers.

Examples of a valid variable name in python

![Screenshot from 2025-07-06 17-21-05](https://hackmd.io/_uploads/Byb5zQdHll.png)

**Examples of invalid variable names in python:**
![Screenshot from 2025-07-06 17-16-39](https://hackmd.io/_uploads/HkdxGQ_Sxx.png)

**Note: Python is case sensitive**

# Data types in Python
In python we have different data types which include the 
```
int (Integer)
str (string)
float (Floating numbers or decimal numbers)
bool (boolian: True or False)
```
In which they are all used to represents data in python.

Example of a python script that accepts a students information and store them in a variable and then displays them:

![Screenshot from 2025-07-06 17-12-39](https://hackmd.io/_uploads/H1uqlmdBlg.png)


Another Example that takes a persons name, age , height, marital status and hobbies- it prints their data types and out put the result at the end.
![Screenshot from 2025-07-06 17-37-53](https://hackmd.io/_uploads/Sk4YIXurlx.png)


I concluded my week with a "Hands-On Friday" where i get to put all the things i learned in practice, performing different tasks giving to me by my instructor which i helping me improve my skills and thinking ability... lokking forward to learn newer things this week.. 


