CyberPi: Remix Control (Gr. 11-12)
Python Coding: Advanced
Description
In this lesson, students will be introduced to the use of functions in Python. Using functions can reduce duplication of code, improve the clarity of code and decompose complex problems into simpler pieces while creating complex algorithms. In this lesson, students will explore the use of functions by creating functions for musical sounds. Students will use the computer keyboard to combine sound effects and play sounds.
Objectives
- Why and how to define functions.
- How to control and monitor the input device by using the ‘pynput’ module.
Curriculum Connections Summary
- Ontario - Mathematics - Computer Science
- Quebec - Coming Soon!
- New Brunswick - Coming Soon!
- Nova Scotia - Coming Soon!
- Alberta - Coming Soon!
- British Columbia - Coming Soon!
- Manitoba - Coming Soon!
- Prince Edward Island - Coming Soon!
- Saskatchewan - Coming Soon!
- Newfoundland & Labrador - Coming Soon!
- Yukon Territories - Follow's B.C.'s Curriculum
- Northwest Territories - Follows Alberta's Curriculum
- Nunavut - Follows Alberta's Curriculum
Find Out More
Networkable microcontroller for Computer Science and AI education
CyberPi is a single-board computer, packed with advanced electronics which makes it a powerful coding machine! In combination with an impressive mBlock coding editor, it supports the development of coding skills from block-based programming to Python. The Python editor is a platform designed for learning and teaching Python and Micropython - taking AI, IoT and Data Science learning to the next level!
- Buy the CyberPi
- Makeblock software
- View All Lessons [Coming Soon]
- Subscribe for Premium Cross-Curricular Lessons [Coming Soon]