Answer:
The recursion function is as follows:
def raise_to_power(num, power):
if power == 0:
return 1
elif power == 1:
return num
else:
return (num*raise_to_power(num, power-1))
Explanation:
This defines the function
def raise_to_power(num, power):
If power is 0, this returns 1
if power == 0:
return 1
If power is 1, this returns num
elif power == 1:
return num
If otherwise, it calculates the power recursively
else:
return (num*raise_to_power(num, power-1))
The compound condition are:
- 7<12 or 50!=10 is false
- 7<12 and 50<50 is false
- not (8==3) is true
<h3>What is compound condition?</h3>
A compound statement is known to be one that shows up as the body of another statement, e.g. as in if statement.
The compound condition are:
- 7<12 or 50!=10 is false
- 7<12 and 50<50 is false
- not (8==3) is true
Learn more about compound condition from
brainly.com/question/18450679
#SPJ1
verry true, unless ou dont need a loan, if you have cash then the answer is false