Python for beginners: free interactive self marking activities

For each of the tryit, debugit and extendit activities, you’ll get an interactive python code editor that runs in the browser on any device.

As you work through the challenges in each code editor, you get a score in the top right corner of the screen showing your progress so far.

Free interactive python self marking tests
Screenshot: Free interactive python self marking tests

Keyboard shortcuts:

At any point, you can press:

  • Ctrl+S  to save your code to a unique URL, that you can submit to your teacher as proof of having done your homework / classwork or keep for your own records.
  • Ctrl + Enter  to run your code to test it
  • Ctrl + Space  to run one line at a time to debug it

Python for beginners: Here’s where I’ll post the links when each activity is published:

  1. Output: Published Aug 2018
  2. Input: Published Aug 2018
  3. Syntax errors: Published Aug 2018
  4. Variables: Published Aug 2018
  5. Naming conventions: Published Sep 2018
  6. Data types: Published Sep 2018
  7. Runtime errors: Published Sep 2018
  8. Sequence: Published Sep 2018
  9. Selection: Published October 2018
  10. Logic errors: Published Jan 2019
  11. Lists: Published July 2019
  12. Iteration: Published August 2019 
  13. Writing to files: Published July 2020
  14. Reading from files: Published July 2020
  15. Error handling: Published July 2020 
  16. Procedures: Published November 2020
  17. Functions: Published November 2020
  18. Parameters: Published November 2020
  19. Optimisation
  20. What next?

If you have any suggestions or if you’ve spotted something I’ve done wrong, please get in touch via the comments below or the contact page.

5 thoughts on “Python for beginners: free interactive self marking activities

  • Pingback: Free interactive Python tutorials for beginners

  • September 15, 2018 at 7:40 pm


    Really nice resource, love the accessibility, layout, tasks, everything really.

    Have spotted a few typos: your self/yourself …. it’s/its….. a/at

    More than happy to point them out if you let me know where and how.

  • September 15, 2018 at 7:48 pm

    Thanks Austin. Would really appreciate the quality control feedback on typos-thank you. Just comment like this wherever you see them. Thanks very much 😀

  • February 5, 2019 at 9:55 am

    Brilliant resource. Thank you for sharing. The kids love the certificate at the end and it’s a great way to track progress.

  • March 13, 2019 at 1:03 pm

    Great resources! Thank you for doing this! Looking forward to the next ones!


Leave a Reply

Your email address will not be published. Required fields are marked *