Solving for Multiple of Index in Python
The challenge
Return a new array consisting of elements which are multiple of their own index in input array (length > 1).
Examples:
[22, -6, 32, …
Read Article →403 articles about python development, tools, and best practices
Return a new array consisting of elements which are multiple of their own index in input array (length > 1).
Examples:
[22, -6, 32, …
Read Article →When provided with a letter, return its position in the alphabet.
Input :: “a”
Ouput :: “Position of alphabet: …
Read Article →The make_looper()
function takes a string (of non-zero length) as an argument. It returns a function. The function it returns will …
In this challenge, you will make a function that converts between camelCase
, snake_case
, and kebab-case
.
You must write a function that …
Read Article →Create a function, that accepts an arbitrary number of arrays and returns a single array generated by alternately appending elements …
Read Article →Complete the greatestProduct
method so that it’ll find the greatest product of five consecutive digits in the given string of …
Write a function that calculates the least common multiple of its arguments; each argument is assumed to be a non-negative integer. In …
Read Article →Write a class that, when given a string, will return an uppercase string with each letter shifted forward in the alphabet by however …
Read Article →Create a function that transforms any positive number to a string representing the number in words. The function should work for all …
Read Article →Create a function that converts the value of the String to and from Base64 using the ASCII character set.
Do not use built-in functions. …
Read Article →There is an array of strings. All strings contain similar letters except one. Try to find it!
find_uniq([ 'Aa', 'aaa', …
Read Article →
Complete the function/method so that it takes a PascalCase
string and returns the string in snake_case
notation. Lowercase characters …