โšกCaching & Partial ApplicationWORKSHOP
1
2
3
4
5

Step 1

Use `functools.partial` to create two specialized functions from a general `power(base, exp)` function: `square` (exp=2) and `cube` (exp=3). Then print `square(4)` and `cube(3)`.

โŒ˜ Enter (Mac) ยท Ctrl+Enter (Win/Linux)