Python For Kids (Part 8: FUN With Music)
For a complete table of contents of all the lessons please click below as it will give you a brief of each lesson in addition to the topics it will cover. https://github.com/mytechnotalent/Python-For-Kids
IS EVERYONE EXCITED? IS EVERYONE READY TO GET THEIR JAM ON?
Today we are going to have FUN with our little friend and have him jam out some tunes for us as the party starts right now!
Ok... Let's start with the boring stuff, the setup.
STEP 1: Connect Your Earbuds To The micro:bit
STEP 2: Open Mu IDE
STEP 3: Type Code
STEP 4: Click Save
STEP 5: Save File - main.py - Desktop
STEP 6: Click Flash
STEP 7: SEE THE FUN AS OUR NEW FRIEND IS JAMMIN OUT HIS FAVORITE TUNE!
(Use your headphones to hear our friend jammin his favorite song.)
It's your turn! Ask our little friend to play some of his other favorite songs for you! You can try something like this on line 3 by replacing line 3 in our code with one of the below statements to which you will SAVE and FLASH as described above.
Here’s a list of the built-in songs:
- play(DADADADUM)
- play(ENTERTAINER)
- play(PRELUDE)
- play(ODE)
- play(RINGTONE)
- play(FUNK)
- play(BLUES)
- play(BIRTHDAY)
- play(WEDDING)
- play(FUNERAL)
- play(PUNCHLINE)
- play(PYTHON)
- play(BADDY)
- play(CHASE)
- play(BA_DING)
- play(WAWAWAWAA)
- play(JUMP_UP)
- play(JUMP_DOWN)
- play(POWER_UP)
- play(POWER_DOWN)
Feel free to share your code in the comments below! I would LOVE to see what YOU create!
In our next lesson we will have some FUN with talking robots!