LightBot 1
[ARgame game=”3865″]
Click here to download
Download “Light-bot.swf” light-bot.swf – Downloaded 406 times – 640 KB
The most basic circuit that we will learn to wire is the LED light. The others are not much different and no harder in most cases. Click here to download PDF version Click here to download code With LEDs its is important you use the correct resistor for the correct LED. Refer to wherever you more »
An If statement is a control structure. We use if statements to programme an automatic response from a computer. Think about an every day device such as a fire alarm in your house. An if statement is programmed into the device memory to beep loudly if it detects carbon monoxide. Look at the flow chart below. more »
While Loops are similar to for loops because they repeat segments of code. However in a for loop, you specify how many times a segment of code should repeat. With a while loop, you need to set the condition to make the code stop repeating the specified segment. Setting the condition is similar to that more »
Input allows a user to add data to a variable for use later in the programme. This is great if you want to ask the user for anything such as their age or anything else! by default Python always assumes all input data is a string datatype. To change this wrap the input function within more »