6 kyu
Replace With Alphabet Position
98,303 of 217,831MysteriousMagenta
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 | 428882 |
Total Skips | 50940 |
Total Code Submissions | 870250 |
Total Times Completed | 217831 |
Python Completions | 98303 |
JavaScript Completions | 84781 |
C# Completions | 14790 |
PHP Completions | 5509 |
C Completions | 2529 |
Ruby Completions | 4843 |
Rust Completions | 2751 |
Scala Completions | 799 |
NASM Completions | 29 |
Groovy Completions | 103 |
COBOL Completions | 8 |
Haskell Completions | 521 |
Crystal Completions | 19 |
CoffeeScript Completions | 14 |
Julia Completions | 60 |
C++ Completions | 4108 |
Factor Completions | 15 |
D Completions | 8 |
Lua Completions | 76 |
TypeScript Completions | 856 |
Total Stars | 3708 |
% of votes with a positive feedback rating | 90% of 18850 |
Total "Very Satisfied" Votes | 15413 |
Total "Somewhat Satisfied" Votes | 3174 |
Total "Not Satisfied" Votes | 263 |