Thursday, July 28, 2022

Starting to code with Python

 My Year 8 coding class came back to me today after their two week break. Last term we were working with the mBots, looking and binary and using the sensors on the mBot. Link to the mBot planning on my class site.

Today, we started playing with the Microbits - link to planning. The online app for using the microbits is great, as there is a simulator to test the code before you put it onto the actual microbit. You can code in either the blocks or python / java script. It takes you through activities with tutorials, step by step, to build your skills and confidence.

What we did today was to start with the block coding, as they were comfortable with that as they have done a lot of it with the mBots. We then did the same activities using Python and put screen shots of both side by side so they can compare and see what each part means. This was good as they could then change parts of one and see what what happened with the other. Being able to click back and forth between blocks and Python on the screen was really useful for this today. They could also see what rules were needed when writing the simple lines of code (like indenting).

This was all written up on a presentation by the students with examples of what they have been looking at and changing in the code.

Link to my example


No comments:

Post a Comment