6 kyu
Replace With Alphabet Position
97,178 of 215,447MysteriousMagenta
Description:
Welcome.
In this kata you are required to, given a string, replace every letter with its position in the alphabet.
If anything in the text isn't a letter, ignore it and don't return it.
"a" = 1
, "b" = 2
, etc.
Example
Input = "The sunset sets at twelve o' clock."
Output = "20 8 5 19 21 14 19 5 20 19 5 20 19 1 20 20 23 5 12 22 5 15 3 12 15 3 11"
Strings
Fundamentals
Similar Kata:
Stats:
Created | Nov 21, 2014 |
Published | Nov 21, 2014 |
Warriors Trained | 424771 |
Total Skips | 50628 |
Total Code Submissions | 863862 |
Total Times Completed | 215447 |
Python Completions | 97178 |
JavaScript Completions | 84018 |
C# Completions | 14677 |
PHP Completions | 5478 |
C Completions | 2471 |
Ruby Completions | 4810 |
Rust Completions | 2712 |
Scala Completions | 793 |
NASM Completions | 27 |
Groovy Completions | 102 |
COBOL Completions | 8 |
Haskell Completions | 509 |
Crystal Completions | 19 |
CoffeeScript Completions | 14 |
Julia Completions | 59 |
C++ Completions | 3962 |
Factor Completions | 15 |
D Completions | 8 |
Lua Completions | 66 |
TypeScript Completions | 762 |
Total Stars | 3680 |
% of votes with a positive feedback rating | 90% of 18747 |
Total "Very Satisfied" Votes | 15326 |
Total "Somewhat Satisfied" Votes | 3159 |
Total "Not Satisfied" Votes | 262 |