Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
503 B
1
Indexable
Never
Write a function that takes a string argument and returns true if it is a palindrome and False otherwise.
2. 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