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

1.03: An Argument with Marty

Change Marty's Arguments to Change the Action

1.03: An Argument with Marty
Age / stage
5 - 7
Estimated time
45 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. Learning checks
  8. Additional reading
  9. Curriculum standards

Lesson overview

Learners know that adding a duplicate block copies an action: two forward arrow blocks cause Marty to take two steps. In this lesson, learners will discover the part of a block that contains an argument, which modifies how many times a block is carried out.

One thing to note is that the maximum number for any argument is 20.

Learning objectives

  • I can say what an argument is, for a program.
  • I can decrease the amount of code I write by changing an argument.

Key vocabulary

  • Argument
  • Efficient

Prior learning

Knowledge of block names

Before you begin

Equipment

  • Marty the Robot v2
  • Tablets
  • Access to the Blocks Jr editor

Technical information

For this entire lesson, Marty should be on the ground, not on a table.

Warm-up

TimingActivityPossible adaptations
Timing—

Warm up

Share with learners the learning objectives and success criteria for the lesson, from the presentation file.

Read the story text from the resources section or in the presentation slides. Notes have been added to support the flow.

The video near the end of the story text, in the presentation, illustrates an argument changing in a set of instructions.

Possible adaptations—

Get learning

TimingActivityPossible adaptations
Timing—

Get Learning

Ask learners if they have ever had an argument with a friend or a brother or sister. Is that the kind of argument that Marty had to find out about?

Now have them think about the other kind of argument, the argument that changes one step in an instruction. Have they ever done something with this kind of argument. If no one says they have or no suggestions were offered, ask about when they brush their hair or teeth, do the brush only once? How about eating a sandwich, do they only need to take one bite? When they wash their hands, do they only rub their hands together one time? Ask learners if they can think of any other instructions that require them to do one thing more than once.

Have learners complete the activity in their workbooks that gives an estimate of the number of times a one action task should be carried out. This will give learners an idea of the benefit of using arguments in instructions.

Show learners the code for Marty completing a task that requires two separate actions, this is after the last slide of the story, from the presentation. The example displays several blocks, because of the number of times an action is carried out. The following slide, in the presentation, shows Marty completing the actions from the code. Here is the same video.

Watch on YouTube

The code that makes use of different arguments is not in the presentation but have learners think and talk about what they could do to make the longer code easier to read. Here is what they might suggest:

Possible adaptations—
Timing—

Time for Practice

Learners need to think of an action that Marty can complete that requires more than 3 separate blocks: walk forward, wave, change expression, for example. Learners need to plan for Marty to complete a movement/task with these 3+ blocks: they need to think about how far they need to move and when the different blocks make sense, in the sequence. Have them write these into their workbooks with a sensible sequence and argument for each block.

Encourage learners to mime the movements they would want Marty to perform with others, in the group, noting down the actions and how often they occur. If learners cannot think of a movement to mime, here are a few suggestions they could plan for Marty: a dance sequence - side-stepping, arm raising, eyebrow expression or sound; washing windows/painting - side-stepping, raising one arm then the other, sounds to indicate effort; going for a walk and calling/waving to friends; putting the shopping away; typing on a keyboard; posing for a photo.

Possible adaptations

Support

Link arguments to multiplication: when the argument is 1, the block code runs 1 time; when 2, the code runs 2 times; 3, 3 times; etc. This should help learners to see that the number doesn't change how often the block runs, just that it changes the number of times the block runs.

Illustrate with number sentences for them to see: 1 + 1 + 1 + 1 is the same as 4 x 1.

Further challenge ideas

Extend

Have learners bring together all the benefits that changing an argument brings. They might choose to organise the benefits into different categories: time, readability, correcting mistakes / debugging. Have groups present their ideas to the class and display their finding to encourage learners to modify the arguments for blocks, rather than adding duplicate blocks, for future learning.

Cool down

TimingActivityPossible adaptations
Timing—

Cool Down

Bring learners back together to discuss the challenges they faced and overcame. Have groups model their creations and explain what is happening, when. Encourage questions about differences between the design of different groups' code.

Suggested questions you might ask:

  • How much time do you think you could save by changing the argument compared to adding more blocks?
  • If you had to go shopping, would it be easier to remember to get a banana and another banana and another banana and another banana and another banana or would it be easier to remember to get 5 bananas?
  • The same thing in a reading book, would you rather read that a character climbed a tree and then another tree and then another tree and then another tree and then another tree or that he climbed 5 trees?
  • This is one of the reasons why we have arguments, in code.

Carry out any end of lesson routines.

Log off devices and clear everything away.

Possible adaptations—

Learning checks

  1. 1

    Change the Argument

    Assessment45 min

    See if you can shorten the code to make it easier to read but get Marty to the same place.

    Open learning check

Additional reading

  • Marty the Robot Educator Guide
  • Educator FAQ

Curriculum standards

17
Choose your curriculum to see the relevant standards.

17 of 17 linked standards shown.

Australian CurriculumAustralia3
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

  • ACTDEP025Generate, develop and communicate design ideas and processes for audiences using appropriate technical terms and graphical representation techniques

Digital Technologies, Design & technologies: Digital Technologies

  • ACTDIP010Define simple problems, and describe and follow a sequence of steps and decisions (algorithms) needed to solve them
  • ACTDIP011Implement simple digital solutions as visual programs with algorithms involving branching (decisions) and user input
CSTA Education StandardsUSA2
Curriculum areaLinked standards
General standards

Select a code to read the full standard.

  • 1B-AP-08Compare and refine multiple algorithms for the same task and determine which is the most appropriate.
  • 1B-AP-12Modify, remix, or incorporate portions of an existing program into one's own work, to develop something new or add more advanced features.
Curriculum for ExcellenceScotland6
Curriculum areaLinked standards
Health and Wellbeing: Mental, Emotional, Social and Physical Wellbeing
Literacy & English: Listening and Talking
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-14a / HWB 1-14a / HWB 2-14a / HWB 3-14a / HWB 4-14aSocial wellbeing

Literacy & English: Listening and Talking

  • LIT 1-07aUnderstanding, analysing and evaluating
  • LIT 1-09aCreating texts

Literacy & English: Writing

  • LIT 1-28a / LIT 1-29aCreating texts

Technologies: Computing Science

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

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

Computing, Design and Technology: Design and Technology

  • ✔️Design purposeful, functional, appealing products for themselves and other users based on design criteria
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)

  • 1dStudents understand the fundamental concepts of technology operations, demonstrate the ability to choose, use and troubleshoot current technologies and are able to transfer their knowledge to explore emerging technologies.
  • 4cStudents develop, test and refine prototypes as part of a cyclical design process.
TEKSUSA2
Curriculum areaLinked standards
Elementary Technology Applications: Grade 3 to Grade 5

Select a code to read the full standard.

Elementary Technology Applications: Grade 3 to Grade 5

  • 2.FCommunication and collaboration. The student collaborates and communicates both locally and globally using digital tools and resources to reinforce and promote learning. The student is expected to: perform basic software application functions, including opening applications and creating, modifying, printing, and saving files.
  • 4.CCritical thinking, problem solving, and decision making. The student applies critical-thinking skills to solve problems, guide research, and evaluate projects using digital tools and resources. The student is expected to: evaluate student-created products through self and peer review for relevance to the assignment or task;

Resources

Learner resources

  • Student Workbook for An Argument with MartyFile links loading
  • Story TextFile links loading

Educator resources

  • Teacher GuideFile links loading
  • Presentation for An Argument with MartyFile links loading