stage.set_background_color("Orange")
sprite = codesters.Text(" ")
sprite.set_text_size(40)
def printThis(printMe):
sprite.set_text(printMe)
stage.wait(4)
#******************************************
# there are six types of variables in python, we will mostly use two
# 1) Number - integer, float (decimal)
# 2) String - string is a text surrounded by quotes
#Variables are like buckets they hold something
#variables have names
my_number_bucket = 2
printThis(my_number_bucket)
your_string_bucket = 'Lola'
printThis(your_string_bucket)
my_number_bucket = 4
printThis(my_number_bucket)
your_string_bucket= 'Francis'
printThis(your_string_bucket)
#ourBucket = my_number_bucket + your_string_bucket
our_bucket = str(my_number_bucket) + your_string_bucket
printThis(our_bucket)
Try the following steps to connect to your Micro:bit:
1. You may need to reload this page and try your program again.
2. Try disconnecting and reconnecting your Micro:bit. Then reload the page and run your program again.
3. If you are still having problems your Micro:bit may have an old
firmware version that is incompatible with Codesters.
To update the firmware follow these instructions from Micro:bit
Are you already running a Codesters project in another tab or window?
Micro:bit can only connect to one web page at a time.
Try stopping other Codesters projects or closing
other tabs or windows that may be using your Micro:bit.
If that doesn't fix the problem try disconnecting your Micro:bit,
reloading this page, and reconnecting your Micro:bit.