Teaching Materials
What is new in this level?
In this level the students will be introduced to loops with for.
New in this level:
- Loops with for
- Slides Present the level, one concept at a time
Common mistakes
Students do not use the for command correctly
What students get wrong
We often see that students try to print the list (in the example animals) instead of the items of the list.
animals is dog, cat, blobfish for animal in animals print 'I love ' animals
How to fix it
The word animals in the last line should be changed into animal.
animals is dog, cat, blobfish for animal in animals print 'I love ' animal
Students forget the indentation
What students get wrong
Students tend to forget to use indentation after a for command.
animals is dog, cat, blobfish for animal in animals print 'I love ' animals
How to fix it
You should use indentation after a for command.
animals is dog, cat, blobfish for animal in animals print 'I love ' animal