Island5-full-554x368.png

Island 5

11-13 yrs old

14-18 yrs old

Computer Science

USING FUNCTIONS IN PYTHON.

7
avatar Submitted By: Minecraft Education

October 23, 2020

Skills

  • Creativity
  • Critical Thinking

Learning Objectives

  • Understand the purpose of functions within Python.
  • Become familiar with using parameters within functions to pass in information.
  • Become familiar with using return statements to return back information to the parent code.
  • Understand the basics of events and their use in Minecraft.
  • Continue to develop an understanding of the concept of Decomposition, as students break problems down into codable solutions for the Agent.
  • Continue to see the importance of Sequencing, putting things in order, so that the Agent can complete its tasks.
  • Utilize the following CSTA standards: 1A-AP-10, 1B-AP-10, 1B-AP-11, 1B-AP-12, 2-AP-14

Guiding Ideas

Welcome to the Kingdom of the Floating Islands. This mystical kingdom floats high above the world below. Throughout this collection of lessons, students will learn the basics of Python, through a series of themed tasks in each world. Completing these tasks will allow the kingdom to develop further technologically.

In Island 5, you will be focusing on using Functions. Functions are mini programs, that you can then run as many times as you want, all from within your program.

Lead-in:

Explain to students, that this island builds upon the previous work they have done in Island 4. Once again, their agent will be returning, although in this lesson they will be focusing on building out their own functions. Their agent will help them complete a series of tasks that they wouldn’t be able to otherwise complete.

Student Activities

CODING ACTIVITIES: 30-45 minutes

Activity 1: (Supporting towers)

Activity 2: (Light translator)

Activity 3: (Bouncing)

Activity 4: (Power linkup)

Completion:

Once the telescope has been hooked up, the students are encouraged to speak with the Prime Minister in the parliament building. This completes the world.

Performance Expectations

Completion of all the activities in the lesson is required.

Skills

  • Creativity
  • Critical Thinking