Fill-In Functions¶
Download and finish the following code to practice working with functions:
If you do everything correctly, it should produce output like the following:
Watch as we demonstrate functions.
I'm going to get a random character from A-Z
The character is: N *(or whatever)*
Now let's count from -10 to 10
-10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 How was that?
Now we take the absolute value of a number.
|-10| = 10
That's all. This program has been brought to you by:
programmed by Daniel Gallo
modified by [your name here]
This code is distributed under the terms of the standard BSD license.
Do with it as you wish.
©2021 Daniel Gallo
This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Adapted for Python from Graham Mitchell’s Programming By Doing