Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 536 Bytes

lmfaust_makecode_python.md

File metadata and controls

18 lines (15 loc) · 536 Bytes

My Simple MakeCode to Python Conversion

In this simple exercise, I have learned to convert a program from MakeCode into Python

Here is my Python Code

from dcs import * #on Start light_Sensor=0 while True: light_Sensor=getLight print(light_Sensor) if light_Sensor>200: setAllPixelsTo(BLUE) else: setAllPixelsTo(GREEN)

Here is my MakeCode

enter image description here