Pages

Friday 2 July 2021

Coding In Python

  L.I : To Learn how to code the Microbot in the Phyton.

 Here is an example of the buttons,  the main thing to notice is "def" which is defining what the on_button_pressed will make the microbot do. Again this has a top and bottom so the content has to go insde it. 


The first one image shows the Phyton coding for the flashing hearts code that I made. It flashes between a small heart icon and a large heart Icon. The diference between python coding is that block coding uses blocks and python coding uses text that you have to type down.

No comments:

Post a Comment