A lot of children enjoy playing computer games – but how many know how they work?

The secret was revealed to nearly 200 primary school pupils at the University of East London’s coding day.

Youngsters from seven schools across east London participated in the session, which was designed to help make coding more accessible.

The day was organised by Gurav Malik, from the university’s school of architecture, computing and engineering.

He said: “We saw that coding was becoming popular in the media, there was a lot of buzz, and we are close to east London’s tech city and surrounded by lots of schools, so we thought we could bring it all together.

“Children have more computing devices at home than ever before, so this helps them relate what they have and how it works.”

Computer science is now part of the primary school curriculum, with some running extra-curricular coding clubs to enhance their pupils’ skills.