
---

## Exercise 1 - Printing a Sentence

**Goal:** Combine a variable with text inside a print statement.

**Instructions:**

1. Create a variable called `name` and assign your name to it.
2. Use `print()` to output the sentence: `My name is Alice` (using the variable, not a hard-coded name).

**Expected output (example):**

```
My name is Alice
```

**Hint:** You can join text and variables using a comma inside `print()`, for example `print("Hello", name)`.

---

## Exercise 2 - F-Strings

**Goal:** Use an f-string to build a formatted sentence.

**Instructions:**

1. Create variables for `name`, `age`, and `city`.
2. Use a single `print()` statement with an f-string to output: `My name is Alice, I am 30 years old, and I live in London.`

**Expected output (example):**

```
My name is Alice, I am 30 years old, and I live in London.
```

**Hint:** An f-string starts with the letter `f` before the opening quote, and variables go inside curly braces: `f"Hello {name}"`.

---

## Exercise 3 - Updating a Variable

**Goal:** Reassign a variable and observe how its value changes.

**Instructions:**

1. Create a variable called `score` and assign it the value `0`.
2. Print `score`.
3. Reassign `score` to `10`.
4. Print `score` again.
5. Reassign `score` to `25`.
6. Print `score` one more time.

**Expected output:**

```
0
10
25
```

**Hint:** You reassign a variable the same way you create it: `score = 10`. The old value is replaced.

---

## Exercise 4 - Swapping Two Variables

**Goal:** Swap the values of two variables.

**Instructions:**

1. Create a variable `a` with the value `"hello"` and a variable `b` with the value `"world"`.
2. Print both variables.
3. Swap the values so that `a` now holds `"world"` and `b` now holds `"hello"`.
4. Print both variables again.

**Expected output:**

```
hello
world
world
hello
```

**Hint:** You will need a third temporary variable to hold one of the values during the swap, for example `temp = a`.

---

## Exercise 5 - User Profile Card

**Goal:** Combine everything practised so far to produce a formatted output block.

**Instructions:**

1. Create the following variables:
    - `name` - your name as a string
    - `age` - your age as an integer
    - `occupation` - your job or student status as a string
    - `country` - the country you live in as a string
2. Print a profile card that matches the format below exactly, using f-strings.

**Expected output (example):**

```
--------------------------
Name:        Alice
Age:         30
Occupation:  Student
Country:     United Kingdom
--------------------------
```

**Hint:** You can pad spaces manually inside your f-string to line things up, for example `f"Name: {name}"`.

