Code for Life Community hub
Python DenRapid RouterCode for Life website
  • 💛Welcome
  • 📅Release Notes
  • âĪïļBecome a Contributor
  • ðŸŠīIndustry Experience
  • 🏆Wall of Fame
  • ðŸ“ĶRepositories and Packages
  • ðŸī󠁧ó Ēó Ĩó Ū󠁧ó ŋNational Curriculum alignment
  • ðŸī󠁧ó Ēó ģó Ģó īó ŋNational Curriculum alignment
  • â„đïļGlossary
  • COMMUNICATIONS
    • 📖Publications
  • 🗞ïļNewsletters
    • 🎊Spring 2025
    • 🌷Bett show 2025
    • 🎄December 2024
    • 🍁Autumn 2024
    • ðŸŒŧSummer 2024
    • 🐰Spring 2024
    • ❄ïļWinter 2024
    • 🎄December 2023
    • 🍁Autumn 2023
    • ðŸŒŧSummer 2023
    • 🌷Spring 2023
    • 🎄December 2022
    • 🍁Autumn 2022
    • ðŸŒŧSummer 2022
    • 🌷Spring 2022
    • 🎄December 2021
  • ðŸ§ĐNewsletter challenges
    • ðŸĪ–Ocado Robot Debugging Challenge!
  • ðŸĪ–Books of Robots
  • Community resource hub
    • ðŸ’ŧHow do Computers work?
    • 🔐Safety online: Passwords and Security
    • ðŸĪ–The World of Robotics
    • ðŸĶūCareers in technology
      • 📃Careers posters
      • ðŸ“―ïļCareer based videos
  • 🗚ïļLevel Maps 1‒50
  • Software Developer Guide
    • ðŸ’ŧDev Environment Setup
    • 🔝Code Promotion Strategy
    • ðŸ’ŋBack End
      • â„đïļOverview
      • ✍ïļCoding Patterns
      • 🧊Testing Strategy
    • ðŸ–ąïļFront End
      • â„đïļOverview
      • ✍ïļCoding Patterns
      • 🧊Testing Strategy
  • Links
    • Code Workspace
    • Visit our Site
Powered by GitBook
LogoLogo

Copyright Ocado Group 2025

On this page
  • Try it out/Can you solve this?
  • Under the Spotlight
  • Help, it won't stop!
  • Celebrate National Coding week with Code for Life
  • Solutions

Was this helpful?

Export as PDF
  1. Newsletters

Autumn 2022

It's National Coding Week 🎉

PreviousDecember 2022NextSummer 2022

Last updated 1 month ago

Was this helpful?

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 that is related to coding, and use Code For Life to introduce coding skills to drivers and warehouse operatives at Ocado Group.

"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."

Did you know?

Try it out/Can you solve this?

Under the Spotlight

Richard Watkins - Data Scientist

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?

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?

a
number = 1
while number < 10:
    print(number)
    number + 1
print("Finished!")
b
number = 1
while number < 10:
    print(number + 1)
print("Finished!")
c
number = 1
while number < 10:
    print(number)
    number = number +1
print("Finished!")
d
number = 1
while number < 10:
    print(number)
number = number +1
print("Finished!")

Celebrate National Coding week with Code for Life

Solutions

Brain Teaser solution

Python solution:

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

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

c) This is correct. 1 is being added to number and that value is being stored back in number

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

“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.”

Python is used in the whole data pipeline of the . .

Test your skills with one of our .

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 and suitable for younger students, and our 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. how you get on with them and if you have any suggestions to improve them.

🗞ïļ
🍁
codingweek.org
James Webb Space Telescope
Explore the universe with Webb
Brain Teaser levels
Primary learning
alternative club pack
Let us know
National Coding week
highlight a job
Richard Rolfe
Brain Teaser
Richard Watkins
Club certificate
Brain teaser solution