Hour of Code: Flags of the World Lesson Plan

Overview

In this code activity, students use the Turtle module in the Python Programming language to learn about computational thinking, programming and geometry. Students are introduced to computational thinking concepts, including control structures which determine the flow of a program.

The activity is structured as sequence of interactive notes and questions that students are challenged to answer. Students are introduced to the turtle, which draws lines and shapes on the computer screen. As students learn how to manipulate the turtle, drawing lines, changing angles and drawing shapes, they are challenged to draw flags of increasing complexity.

This activity would work well in a number of different settings, including in a geography class, after discussion about different places in the world, or a sociology class, where the concept of flags and patriotic symbols are discussed.

map of the world showing flags
"Flag-map of the world" by Transparent 6lue - Own work. Licensed under CC0 via Wikimedia Commons.

Learning objectives

Students will:

  • learn how to draw by moving a turtle forwards on the screen
  • learn about angles and how to turn the turtle
  • learn how fill shapes drawn by the turtle
  • do mathematical calculations to divide a rectangle into smaller shapes
  • use logic and problem solving skills to answer simple questions

Extended activities

  • Group activity of the meaning of flags, following Flags: A Classroom Activity by Rebecca Belchamber.
  • Use Numbeo to compare the cost of living in different countries. You can use the map view to view this directly on the world map.
  • Use the World Fact Book to compare the the history, people, government, economy, energy, geography, communications, transportation, military, and transnational issues for 267 world entities.

Register as a teacher for free!

Or pick one of our other fun activities. Suitable for Grades 3-12.

Monster Maker! (Blockly)

Use drag-and-drop blocks to write your own programs, learn about sequence and ordering, and create fun monster characters!

Start coding now!

Animal Classifier (Python)

Learn about the differences between animals, and how Biologists use programming to help them do science! You'll use the programming language Python to classify animals based on their characteristics.

Start coding now!

Is Eliza Human? (Python)

Use the programming language Python to build a friendly chatbot called "Eliza". Can she fool your friends into thinking she's a human?

Start coding now!

Frozen Fractals (Python Turtle)

Use the programming language Python and instruct a turtle to draw fantastic snowflakes with code! Brrr, is it getting cold in here?

Start coding now!

Frozen Fractals (Blockly Turtle)

Build programs using friendly blocks and instruct a turtle to draw fantastic snowflakes with code! Brrr, is it getting cold in here?

Start coding now!

Virtual Pet (Python micro:bit)

Get started with the BBC micro:bit. Use the Python programming language to make a pet that you can feed and play with! No micro:bit required.

Start coding now!

Virtual Pet (Blockly micro:bit)

Get started with the BBC micro:bit. Use friendly blocks to make a virtual pet that you can feed and play with! No micro:bit required.

Start coding now!

Hydrangea Danger (Blockly Turtle)

This activity is designed to introduce branching. Use the Blockly version of Python and its turtle module to draw and colour hydrangea flowers!

Start coding now!

Emoticon Madness (Python)

Ever wanted to create your own emoticon? Use the programming language Python to explore emoticons and text manipulation.

Start coding now!

Space (Blockly Python)

Use the visual programming language Blockly to investigate space and reach for the stars.

Start coding now!

Disease Epidemic (Python)

Use the programming language Python to model a disease outbreak. Can you solve the curious case of the glowing nose?

Start coding now!

The Dark Tunnel (Python)

Use the programming language Python to create a simple game (or MUD). Can you find your way through the dark tunnel?

Start coding now!