Deborah R. Fowler
Functions
Posted on Aug 29 2018Updated on April 11 2023
- functions - repetition of code
Screen grab of the example created in class (with gaps)
April 3, 2019 and
also an example created Sept 21, 2019 showing a quilt with no
gaps and a border
Example
files with functions in another file and used by importing
and if it is contained in a folder
- from nameOfFile import *
- from folderName.nameOfFile import *
As you work toward your exercise practice using parameters
in the quilt functions below.
Remember to neaten, add comments and have clean readable code.
Below is an example with a border and no gaps.
Here is another fun example! Similar, but instead of a quilt it is a nested loop using the Fibonnaci sequence! Happy Easter!
Click to download the python file emojiFonts.py