When using a variable, how do we ensure our game repeats as new
"variable"=0
show_string("mom")
It displays mom on the screen
What language did we program in
Python
Where do we plug in our "black wire" with one large end and one large end (when connecting microbits)
Plug the small end of the USB cable (the USB-C) into the micro:bit board.
Plug the large end (standard USB) into your computer’s USB port.
What is the name of the block that runs only once at the very beginning of a Micro:bit program?
on start
What is a colon used for
Ending of if,while,for and functions
def on_gesture_shake():
pass
input.on_gesture(Gesture.SHAKE, on_gesture_shake)
What you insert in the place of pass will display when you shake the microbit
Coding is Used in Our Everyday Lives in...
Video games, apps, websites
What is the username you sign in with for this class
dvc.local\c4k
What is an actuator?
The mechanism by which a control system acts upon an environment and a device that moves when supplied with energy
Why does this not work:
if roll == 1
There is no colon ":"
basic.show_icon(IconNames.HEART)
Shows a heart symbol
What are the ways you can save your code mentioned in class
Download the code or take a picture of it
What is the name of the block used to run code over and over again forever?
forever
on_start:
show_icon("heart")
The function is written incorrectly.
correct syntax if in Python "def on_start():"
How do you create variables?
global "variable name"
25 total. 5x5 screen.
What kind of loop is:
"repeat 4 times
do..."
an limited loop
What’s the name of the sensor inside the Micro:bit that can tell if the device is shaking or tilting?
Accelerometer
Why does this not work
hand = randit(1,6)
it is randint not randit
hand = randint(1, 3)
pick randomly from 1-3
What is the distance between the sensor and the object?
one-half the distance traveled by the sound wave
What is your teachers name
Esha
A robot is a machine that follows code and can sense or react to the world around it