|
|
List comprehension is a very useful way to express mathematical ideas. It is a way of creating lists from other lists.
It has the structure [f(x) for x in [some list]] where f(x) can be a previously defined function or just some general expression:
|
|
|
|
|
|
|
|
|
|
Here's an idea for illustrating inverses:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Here is an example of some text.
Wow, I've learned so much about functions!
Functions in the computational world are even more fun than functions in our typical schoolish environment.
|
|
|
|
|
|
Answer the following with
|
|