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

More By Author:

Check out these other kata created by induhiu

Stats:

CreatedApr 12, 2019
Warriors Trained6
Total Skips0
Total Code Submissions39
Total Times Completed4
Python Completions2
Total Stars0
% of votes with a positive feedback rating0% of 3
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes3
Total Rank Assessments2
Average Assessed Rank
8 kyu
Highest Assessed Rank
8 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • induhiu Avatar
Ad