# Autumn 2022

[National Coding week](https://r1.ddlnk.net/t/4RRT-PYYE-5H8B9G-MYW16-1/c.aspx) was started in 2013 by Richard Rolfe, an inspiring former head teacher who wanted to help adults learn digital skills. This month, we celebrate his initiative with the hashtag #nationalcodingweek on our social channels. You will find our updates [highlight a job](https://r1-app.dotdigital.com/easyeditor/preview?id=1211702\&doctype=#Job-link) that is related to coding, and use Code For Life to introduce coding skills to drivers and warehouse operatives at Ocado Group.

<figure><img src="/files/8ohnEWVkFnIcOI6ctX8t" alt=""><figcaption><p>Richard Rolfe</p></figcaption></figure>

> #### "It struck me that whilst there was government investment in a new computer science curriculum for school children, there wasn’t enough being done to support adults."

“It struck me that whilst there was government investment in a new computer science curriculum for school children, there wasn’t enough being done to support adults… there wasn’t enough being done to support teacher training especially for non-specialists. Parents and governors needed training too… most people aren’t in education so I wondered what was being done to support and retrain those who had missed out on digital skills training or for older people who wanted to switch careers or become more cybersecure.” [codingweek.org](https://codingweek.org/richard-rolfe-founder-of-national-coding-week-tells-his-story/)

{% hint style="info" %}

### Did you know?

**Python** is used in the whole data pipeline of the [James Webb Space Telescope](https://talkpython.fm/episodes/show/357/python-and-the-james-webb-space-telescope). [Explore the universe with Webb](https://webbtelescope.org/news/news-releases).
{% endhint %}

### **Try it out/Can you solve this?**

Test your skills with one of our [Brain Teaser levels](https://www.codeforlife.education/rapidrouter/76/).

<figure><img src="/files/W33iOs04sxA7yr4F12td" alt=""><figcaption><p>Brain Teaser</p></figcaption></figure>

### <mark style="color:red;">Under the Spotlight</mark>

Richard Watkins - Data Scientist

<figure><img src="/files/yjzQ0QWDv87KfOG2byia" alt=""><figcaption><p>Richard Watkins</p></figcaption></figure>

Richard is a Data Scientist working in Supply Chain at Ocado Technology. His team design forecasting algorithms – helping retailers offer their customers good levels of product availability, while minimising waste. As customers can add items to their orders until just a few hours before delivery, and fresh items can have a very short shelf life, this is a huge challenge.

> #### "It's nice to be able to see your algorithms reducing food waste."

## **Help, it won't stop!**

Have a look at the code below. Why does it create an infinite loop?

```python
number = 1
while number < 10:
    print(number)
print("Finished!")
```

Answer: The loop is controlled by the value of *number* but *number* is never changed.

Therefore which is the correct solution from the examples below?

{% code title="a" %}

```python
number = 1
while number < 10:
    print(number)
    number + 1
print("Finished!")
```

{% endcode %}

{% code title="b" %}

```python
number = 1
while number < 10:
    print(number + 1)
print("Finished!")
```

{% endcode %}

{% code title="c" %}

```python
number = 1
while number < 10:
    print(number)
    number = number +1
print("Finished!")
```

{% endcode %}

{% code title="d" %}

```python
number = 1
while number < 10:
    print(number)
number = number +1
print("Finished!")
```

{% endcode %}

## **Celebrate National Coding week with Code for Life**

Code for Life has been delivering support to teachers, parents and students around the world since 2014. This month we are releasing our first coding club packs. We have two different packs; the first is based on [Primary learning](https://code-for-life.gitbook.io/code-club-resources/) and suitable for younger students, and our [alternative club pack](https://code-for-life.gitbook.io/code-club-resources-intermediate/) is ideal for introducing teenagers and adults to the principles of the Python language.

We want anyone to be able to set up a club and start delivering the courses. There are guides and resources for you to follow alongside a set of editable slides. [Let us know](mailto:codeforlife@ocado.com?subject=Contact%20us) how you get on with them and if you have any suggestions to improve them.

<figure><img src="/files/AXunAI8LSNB7XU7uKQxd" alt=""><figcaption><p><strong>Club certificate</strong></p></figcaption></figure>

## Solutions

#### Brain Teaser solution

<figure><img src="/files/18lpzDwjoqYR7f3TaRXN" alt=""><figcaption><p>Brain teaser solution</p></figcaption></figure>

#### Python solution:

a) No, number is not being increased. You must assign number + 1 back to number&#x20;

b) No, number is not being increased. You must assign number + 1 back to number. You can’t do this in a print statement&#x20;

c) **This is correct**. 1 is being added to number and that value is being stored back in number&#x20;

d) Here, the increment to number is not inside the loop. It must be indented to line up with the print()

![](/files/784wADMJzplUIWL1RvXb)


---

# Agent Instructions: 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:

```
GET https://docs.codeforlife.education/newsletters/autumn-2022.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
