Draft
Math, but with letters
2 of 4induhiu
Description:
You should write a function that takes two string values: string_a and string_b, and returns a string which is the equivalent of multiplying the the numerical values of the two strings together.
To elaborate, if string_a was 'abcde' and string_b was 'ghijk'**, you would end up with 01234 * 678910 and the final result would be 'idhhhejea':
the_solution('abcde', 'ghijk') == 'idhhhejea' # true
Your code should ignore all non_letters and should be case-insensitive. If the one of the string is empty, your function should return 0. You can also assume the string will have no spaces.
All the best.
** If the numerical value of a letter is 10 or higher, you should take both the digits as with the example above where 'ghijk' becomes 678910.
Mathematics
Strings
Similar Kata:
Stats:
Created | Apr 12, 2019 |
Warriors Trained | 6 |
Total Skips | 0 |
Total Code Submissions | 39 |
Total Times Completed | 4 |
Python Completions | 2 |
Total Stars | 0 |
% of votes with a positive feedback rating | 0% of 3 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 2 |
Average Assessed Rank | 8 kyu |
Highest Assessed Rank | 8 kyu |
Lowest Assessed Rank | 8 kyu |