BYU logo Computer Science

To start this lab, download this zip file.

Lab 8 - Functions

Activities

colorful_smiles.py

Draw a smile at each dot. The color of the smile should match the color of the dot.

color_bars.py

Extend each color to fill the whole column.

boxes.py

Draw boxes with the bottom-left corner positioned on each dot using the associated color.

lines.py

Fill in the missing color on each row.

There will only be one band of color on each row.

more_lines.py

Again, fill in the lines on each row.

This time, there are zero or more lines to complete in each row.

wells_and_vines.py

Draw a vine where there are green squares, and fill the wells where there are empty spaces to the right.

Grading

ActivityPoints
colorful_smiles.py5
color_bars.py5
boxes.py5
lines.py5
more_lines.py5
wells_and_vines.py5