Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
556 B
2
Indexable
Never
 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 that takes parameters a and b and returns True if a is a power of b. 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 that takes parameters a and b and returns True if a is a power of b. 3. Write a function that takes a string as a parameter. Calculate the length of a string without using the Len function. Print the length concatenated with the string and aligned towards the extreme right of the output screen. 
Leave a Comment