Skip to content
Learning Site
Home

About

  • About Robotical
  • Case Studies
  • Meet the Team
  • Blog
  • Contact Us

Our Products

  • Marty the Robot
  • Axiom
  • Cog

Teach

  • Lessons & Resources
  • Marty for Educators
  • Funding & Grants
  • Professional Development
  • Why Teach STEM?
  • Coding Environments
  • Student Led Learning

Let's Code

  • Marty the Robot
  • Code Online
  • Marty Apple App
  • Marty Android App
  • Update your Marty
  • Cog
  • Code Online
  • Cog iOS App
  • Cog Android App
  • Axiom
  • Axiom Science

Support

  • Marty Get Started
  • Cog Quick Start Guide
  • Axiom Science Quick Start Guide
  • Support & FAQs
  • Marty V2 User Guides
  • Marty V1 Resources
  • Request Support
  • Request Top-Up Training

Shop

  • Marty the Robot and Physical Computing
  • Class Packs
  • Add Ons & Extras
  • Account
  • Shipping, Returns & Cancellations
  • Distributors
HomeLessonsUnits of workCurriculum standardsTutorials

Information

  • Lessons & Resources
  • Knowledge Base & User Guides
  • About Us
  • Shipping, Returns & Cancellation
  • Privacy Policy
  • Learning site privacy
  • Terms of Service
  • Partner Hub

Support & Help

  • Support & Help Center
  • Getting Started with Marty V2
  • Getting Started with Marty V1

Learning, Resources & Guides

  • Marty V2 Lessons Site
  • Marty V1 Lessons Site

Contact Us in the UK

Stanhope House,12 Stanhope Place,Edinburgh,United Kingdom,EH12 5HH
(+44) 0131 564 0922
hello@robotical.io
Contact Us

Contact Us in the US

2810N Church St, PMB 61694,Wilmington,Delaware,USA19802-4447
(+1) 833 886 1661
hello@robotical.io
Contact Us

Why not join our mailing list?

For News, New Products and Special Offers

Join mailing list

Copyright 2016-2026 © Robotical Ltd

All lessons
Marty app
CurrentPrevious

4.05: Marty Python Dance-Off

4.05: Marty Python Dance-Off
Age / stage
14 - 16
Estimated time
90 minutes
Difficulty
Intermediate
Products
Marty V2

On this page

  1. Lesson overview
  2. Before you begin
  3. Warm-up
  4. Get learning
  5. Further challenge ideas
  6. Cool down
  7. Additional reading
  8. Curriculum standards

Lesson overview

In this lesson, students will be putting together their first scripts using IDLE so that they can have a list of Python commands to control Marty. From doing this, students will start to build up a dance routine for Marty and have a small dance-off in the class.

Learning objectives

  • I can build a short program from known commands.
  • I can use documentation to support writing code.

Key vocabulary

  • Editor
  • Sequence
  • Script

Prior learning

Knowledge of Python commands; experience with documentation

Cross-curricular links

Expressive Arts

Before you begin

Equipment

  • Marty the Robot
  • Python Editor
  • Student Workbook
  • MartyPy documentation
  • Devices with Python and MartyPy

Warm-up

TimingActivityPossible adaptations
Timing—

Warm-up

Have a few video clips of different dance routines over the years, or use this example, here: dance trends. Have learners talk together about the different combined movements required for each of the routines. Encourage learners to use their own bodies to emulate one of more of the moves from a dance. It may help to quickly sketch out stick figures and brief captions for the movement.

Possible adaptations—

Get learning

TimingActivityPossible adaptations
Timing—

Get Learning

Given the wide range of movements they may have identified, have learners open their editor for python. Demonstrate the options they have: trying one command at a time in the IDLE window, or any other program for coding; using a text editor, then pasting a sequence of movements into the program. Ask learners which they think is best - there is no correct answer at this point, there are good reasons for programming one line at a time and good reasons for programming entire sequences but you will only see the full dance when it is loaded in its entirety. Testing moves one line at a time in IDLE, or the other program, is a good idea, but saving in a text editor as the program grows, in order to see how moves flow from one to the next, is also worthwhile. Ensure that each step performed is explained as it carried out: copying, pasting, running, saving, editing, etc.

Let learners have free reign to create a routine for Marty. Encourage trial and error throughout the lesson and reassure them that there will be mistakes as they build the routine so the initial focus needs to be on writing code, rather than writing perfect code. Also, have learners comment their code: the # is used, at the start of a line, in python and can be used to describe times where learners overcame a hurdle; were impressed by the code; needed to include an explanation as to what the code was doing; or needed to work on the timing of the move, the distance required for the movement or something else.

Learners need to write, test, repeat. This will take time for a first attempt at a program so this should be given more time than one lesson.

Once all routines are complete, allow for a dance-off. If some groups finish early, encourage collaboration - have finished groups share insights if other groups are stuck. Additionally, finished groups might get some motivation from visiting other groups and then returning to tweak their work, without copying. Highlight that this is not a race to complete the code.

Possible adaptations

Support

Paired programming should continue to be the norm when developing the code so that one is typing while the group is discussing / planning / illustrating the routine; however, having cards with the key commands for a dance routine on each desk should be available to allow each group member the opportunity to be the one typing the commands.

Further challenge ideas

Extend

Have learners look to make the code more efficient. By this time, loops and conditionals have not be discussed, for use in Python; have them independently search for how they could be applied.

Cool down

TimingActivityPossible adaptations
Timing—

Wrap-up

For each wrap-up, bring learners together to share successes and challenges. Encourage collaboration so that groups facing challenges share how they overcame any challenges with others.

Possible adaptations—

Additional reading

Getting Started with MartyPy

Curriculum standards

21
Choose your curriculum to see the relevant standards.

21 of 21 linked standards shown.

Australian CurriculumAustralia4
Curriculum areaLinked standards
Digital Technologies, Design & technologies: Design & Technologies
Digital Technologies, Design & technologies: Digital Technologies

Select a code to read the full standard.

Digital Technologies, Design & technologies: Design & Technologies

  • ACTDEP048Critique needs or opportunities to develop design briefs and investigate and select an increasingly sophisticated range of materials, systems, components, tools and equipment to develop design ideas
  • ACTDEP049Develop, modify and communicate design ideas by applying design thinking, creativity, innovation and enterprise skills of increasing sophistication

Digital Technologies, Design & technologies: Digital Technologies

  • ACTDIP041Implement modular programs, applying selected algorithms and data structures including using an object-oriented programming language
  • ACTDIP044Plan and manage projects using an iterative and collaborative approach, identifying risks and considering safety and sustainability
CSTA Education StandardsUSA2
Curriculum areaLinked standards
General standards

Select a code to read the full standard.

  • 3A-AP-21Evaluate and refine computational artifacts to make them more usable and accessible.
  • 3A-AP-22Design and develop computational artifacts working in team roles using collaborative tools.
Curriculum for ExcellenceScotland12
Curriculum areaLinked standards
Health and Wellbeing: Mental, Emotional, Social and Physical Wellbeing
Literacy & English: Listening and Talking
Literacy & English: Reading
Literacy & English: Writing
Technologies: Computing Science

Select a code to read the full standard.

Health and Wellbeing: Mental, Emotional, Social and Physical Wellbeing

  • HWB 0-11a / HWB 1-11a / HWB 2-11a / HWB 3-11a / HWB 4-11Social wellbeing
  • HWB 0-14a / HWB 1-14a / HWB 2-14a / HWB 3-14a / HWB 4-14aSocial wellbeing

Literacy & English: Listening and Talking

  • LIT 4-02aTools for listening and talking
  • LIT 3-05a / LIT 4-05aFinding and using information
  • LIT 3-06a / LIT 4-06aFinding and using information

Literacy & English: Reading

  • LIT 3-15a / LIT 4-15aFinding and using information

Literacy & English: Writing

  • LIT 3-20a / LIT 4-20aEnjoyment and choice
  • LIT 3-22a / LIT 4-22aTools for writing
  • LIT 4-23aTools for writing
  • LIT 3-26a / LIT 4-26aOrganising and using information

Technologies: Computing Science

  • TCH 4-14bUnderstanding and analysing computing technology
  • TCH 4-15aDesigning, building and testing computing solutions
England's National CurriculumEngland1
Curriculum areaLinked standards
Computing, Design and Technology: Computing

Select a code to read the full standard.

Computing, Design and Technology: Computing

  • ✔️Understand what algorithms are; how they are implemented as programs on digital devices; and that programs execute by following precise and unambiguous instructions
ISTEUSA2
Curriculum areaLinked standards
International Society for Technology in Education (ISTE)

Select a code to read the full standard.

International Society for Technology in Education (ISTE)

  • 1aStudents articulate and set personal learning goals, develop strategies leveraging technology to achieve them and reflect on the learning process itself to improve learning outcomes.
  • 4aStudents know and use a deliberate design process for generating ideas, testing theories, creating innovative artifacts or solving authentic problems.

Resources

Learner resources

  • Python Student Workbook - Marty Python Dance-OffFile links loading
  • MartyPy DocumentationFile links loading

Educator resources

  • Teacher's Guide - Marty Python Dance-OffFile links loading
  • Presentation for Marty Python Dance-OffFile links loading

Solution resources

  • Marty Python Dance-Off SolutionsFile links loading