Hello everyone,
So today i came up with another challenge
Get word’s letters total
Task
Create a procedure that you provide it a word and it will return the sum of all of its letters according to the numbers corresponding to the letters:
Example table ( that will help you debugging ):
Example
Hope those examples explain what i’m talking about.
String => 87
Daily challenge => 118
?@- => 0
Notes:
1- This procedure can calculate the total of a two words or more.( see example 2 )
2- If there is some undefined words they will be calculated as 0 ( see example 3 )
3- Spaces are ignored.
4- You can’t use any extensions or components.
5- The fastest , shortest, but functional answer will be marked as solution 2020-08-26T23:00:00Z
After like 10 daily challenge I improved a lot! I treat them as a practice, because the aim is to kode with the least amount of blocks. This forces myself to optimize my block more and more