Reminder: for each class session and associated homework:
|
Complete the above functions from the following module that you may have began in class: 3-files.py, from the 07-FilesAndFunctions project.
Window ~ Show View ~ Tasks
This one is way cool and not really hard — the last quiz question from today's session featured the same idea. Give it a try!
Complete the writeFunctionValuesToFile function in the following module: 3-files.py, from the 07-FilesAndFunctions project.
writeFunctionValuesToFile(math.cos)will produce exactly the same thing as writeCosinesToFile, but this function call:
writeFunctionValuesToFile(math.sin)will write sine values to the file! And you can use any univariate function of numbers that you like! Wow!