> For the complete documentation index, see [llms.txt](https://felienne.gitbook.io/codasium/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://felienne.gitbook.io/codasium/archief/module-1.1-nederlands/nakijkbladen/les-5-nakijkmodel.md).

# Les 5

## Even opfrissen!

1\) 1. FOUT\
Er mist een ronde haak sluiten op de eerste regel. Dit geeft een SyntaxError.

1. FOUT\
   De gebruikte variabele `naam` is niet gedefinieerd, en de gedefinieerde variabele `voornaam` wordt niet gebruikt. Onderstaand is de juiste manier:

   ```python
    print('Hoe', 'heet', 'jij?')
    naam = input()
    print('Hallo', naam)
    ---
    Input: Sabine
   ```
2. `Je wilt dus thee`
3. `Ja het regent`
4. FOUT De gebruikte variabele `dier` is niet gedefinieerd, en de invoer van de gebruiker wordt niet opgeslagen in een variabele. Onderstaand is de juiste manier:

   ```python
    print('Over', 'welk', 'dier', 'gaat', 'het?')
    dier = input()
    print('Dit', 'verhaal', 'gaat', 'over', dier)
    ---
    Input: hond
   ```

## If-else commando's

1\) 1. De code print: `schudden`\
2\. De code print: `schudden`\
3\. De code print: `legt een ei`\
4\. De code print: `geeft melk`\
5\. De code print: `Hallo goedemorgen!`\
6\. De code print: `Hello good morning!`\
7\. De code print: `Hallo goedemorgen!`

2\) 1. Bij de if gebruik je twee keer de is, dis `==` 2. Achter de regel met de if hoort een dubbele punt `:` 3. Achter de regel met else hoort een dubbele punt `:` 4. Regels onder de if beginnen met 2 spaties 5. Regels onder de else beginnen met 2 spaties

3\) 1. `'waf'` 2. `==` 3. `koe` 4. `'koe'` en `'kwak'`

## Fouten bij if-else

1\) 1. FOUT\
De dubbele punt na de `else` mist.

1. FOUT\
   `Nederlands`, `of`, `Frans` mag niet gescheiden geschreven worden, in een input moet het zo: `Frans of Engels`.
2. FOUT Het gebruik van de `=` en `==` wordt omgedraaid. Het moet zijn `taal = input()` en `if taal == 'Nederlands':`.
3. `Bonjour!`
4. FOUT De regel onder de `if` en onder `else` begint niet met twee spaties
5. `Goedenavond!`
6. `Gutenabend!`

2\) 1. De dubbele punt na `suiker` mist. 2. De regel begint niet met twee spaties. 3. In plaats van een dubbel = teken `==` is er een enkel = teken geschreven `=`. 4. De aanhalingsteken achter `'suiker` mist.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://felienne.gitbook.io/codasium/archief/module-1.1-nederlands/nakijkbladen/les-5-nakijkmodel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
