Perhaps I’m just tired but when this challenge says:
" Write a function named tenth_power()
that has one parameter named num
.
The function should return num
raised to the 10th power."
It should be:
def tenth_power(num)
return num ** 10
correct??
I keep getting this error:
Write your tenth_power function here:
def tenth_power(num)
return num ** 10
Uncomment these function calls to test your tenth_power function:
print(tenth_power(1))
1 to the 10th power is 1
#print(tenth_power(0))
0 to the 10th power is 0
#print(tenth_power(2))
Output:
File “script.py”, line 2
def tenth_power(num)
^
SyntaxError: invalid syntax
Can anyone help me understand where I’m interpreting this wrong?
Thanks!