• Quiz badge

Can You Pass This Basic Coding Test?

Hello, world!

There are eight questions in this quiz that will test how well you know basic coding principles, using the programming language Python. You just need to work out what each piece of code does, and choose the correct answer. Ready?


The questions are based on ones in the Coding Manual (Haynes, 2017) by Mike Saunders.

Kelly Oakes is science editor for BuzzFeed and is based in London.

Contact Kelly Oakes at kelly.oakes@buzzfeed.com.

Got a confidential tip? Submit it here