MCPcopy Index your code
hub / github.com/LinkedInLearning/learning-python-2896241 / cube

Function cube

Ch2 - Basics/functions_finished.py:16–17  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

14
15# function that returns a value
16def cube(x):
17 return x*x*x
18
19# function with default value for an argument
20def power(num, x=1):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected