To shorten the bake_time function, you can use a lambda function. Here's the shorter version of the function:
main.py35 chars2 lines
This is an example of an anonymous function that takes one argument time and returns the result of subtracting time from 40.
gistlibby LogSnag