I am stuck in using multiple parameter through function. I have two files:
1.py
import function
x=2
y=5
print function.power(x,y)
function.py
import math
def power(*x)
return math.pow(x,x)
Whenever i try to pass multiple parameter to power function, it is giving following error:
Traceback (most recent call last):
File "C:\Examples\1.py", line 33, in
print function.power(x,y)
File "c:\Examples\function.py", line 11, in power
return math.pow(x,x)TypeError: a float is required