# Do Exercise 6.4 from your textbook using recursion

and the is_divisible function from Section 6.4. Your program may assume that both arguments to is_power are positive integers. Note that the only positive integer that is a power of "1" is "1" itself.

After writing your is_power function, include the following test cases in your script to exercise the function and print the results:

print("is_power(10, 2) returns: ", is_power(10, 2))

print("is_power(27, 3) returns: ", is_power(27, 3))

print("is_power(1, 1) returns: ", is_power(1, 1))

print("is_power(10, 1) returns: ", is_power(10, 1))

print("is_power(3, 3) returns: ", is_power(3, 3))

You should submit a script file and a plain text output file (.txt) that contains the test output. Multiple file uploads are permitted. Don't forget to include descriptive comments in your Python code.

ce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. L

s ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibUnlock full access to Course Hero

Explore over 16 million step-by-step answers from our library

Subscribe to view answericitur laoreet. Na

Donec aliquet. Lore

sum dolor sit amet, consectetur adipiscing elit. Na

onec aliquet. Lorem ipsum dolor sit amet, consecte

trices ac magna. Fusce dui lectus, congue vel lao

onec aliquet. Lorem ipsum dolor sit amet, consectet

gue vel laoreet ac, dictum vitae odio. Donec aliq

__cing elit. Nam l__