Diri6509 Diri6509
  • 15-05-2023
  • Computers and Technology
contestada

A number, a, is a power of b if it is divisible by b and a/b is a power of b. Write a function called is_power that takes parameters a and b and returns True if a isapowerof b. Note: you will have to think about the base case.
Here is a piece of the book:
def is_divisible(x, y):
if x % y == 0:
return True
else: return False
is_divisible(6, 4)

Respuesta :

Otras preguntas

math question screen shot down below
Which question is a statistics question that anticipates variability A-what is my favorite number if choosing a number between 1 & 10 ? B-What is an average
describe the wave power of the December 26th 2004 tsunami
What type of forces must the polar water molecules break to dissolve ethanol, C2H5OH? A) metallic B) covalent bonding C) hydrogen bonding D) electrostatic
What year did the Space Race begin?
find the value of x in the triangle shown below ​
- Given the polynomial below, which shows the terms in standard form? 5m2n + 9n3 - mn2 + 2m3
the 1925 trial of John Scopes reflects the conflict between
Can somebody please help me with these ? how many moles of AI are needed to react with 6 moles of O2?
The Turkish militaryfavors a non-religious, or_ state.A. paganB. secularC. heathen​