Files
Mastering-Python-2e-code_2/CH_10_testing_and_logging/cube.py
T
2022-05-05 18:25:55 +02:00

12 lines
186 B
Python

def cube(n: int) -> int:
'''
Returns the input number, cubed
Args:
n (int): The number to cube
Returns:
int: The cubed result
'''
return n ** 3