Computer Science, asked by ggore1848, 19 days ago

def power(x, y):
r = 1
for I in range(y):
r = r * x
return r
print (power(3))
print (power(3,3))​

Answers

Answered by greatscholarspoint
2

Answer:

Answer of first print(power(3)) is error because default value of y is not assign

Answer of second print(power(3,3)) is 27

Similar questions