Learn to program

  Finch assignments ::

Learning Goal: Understand how to write a program to control a robot, using loops, conditionals and subroutines where appropriate.



Finch lesson 8 - Create Modules containing Functions


Finch lesson 8 notes - read this or you will fail
the assignment


Assignment 8:

Create a module of five Finch functions, written using the function recipe:

Two should not use parameters, and three should be parameterized.
You may use one of the yoyos as one of them.
One should be a little dance or wiggle. Use your imagination for the others.

When you define new functions save them in a module. Create a module for your
Finch commands called movesyourname.py  It must be saved in the same folder as finchPython.

Once you have created the file, Turn it in to
Shared - Student - Pereira - AI 201x - Class color - Finch assignments - 8. Module as moduleyourname.
There are two ways you can use it. One way is simply to press the
green ‘Run’ button in the Shell window. The other way is, in IDLE, to enter the command

            from movesyourname import*

You should then be able to use any of your functions in a program.




Write a Reflection on what you have learned.