This week at Blockfuse Labs, we focused on Version Control, Git and Git Hub and Python programming with arithmetic and compound assignment operators, essential for manipulating values and writing efficient code.
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.
**Arithmetic Operators** allow basic math operations:
- Addition: 5 + 3 = 8
- Subtraction: 5 - 3 = 2
- Multiplication: 5 * 3 = 15
- Division: 5 / 2 = 2.5
- Floor Division: 5 // 2 = 2
- Modulus: 5 % 2 = 1
- Exponentiation: 2 ** 3 = 8
**Code Example:**
```python
a = 10
b = 3
print(a + b, a - b, a * b, a / b, a // b, a % b, a ** b)
```
**Compound Assignment Operators** simplify expressions by combining arithmetic with assignment. For example, use x += 3 instead of x = x + 3.
**Code Example:**
```python
x = 5
x += 3 # x = 8
x -= 2 # x = 6
x *= 2 # x = 12
x /= 4 # x = 3.0
x //= 2 # x = 1.0
x %= 2 # x = 1.0
x **= 3 # x = 1.0
```
**Conclusion:**
This week's lesson reinforced the importance of understanding operators in Python. Mastering these tools is vital for effective programming. I'm eager to continue developing these skills at Blockfuse Labs.