6 kyu
Replace With Alphabet Position
96,889 of 214,809MysteriousMagenta
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 | 423678 |
Total Skips | 50541 |
Total Code Submissions | 862094 |
Total Times Completed | 214809 |
Python Completions | 96889 |
JavaScript Completions | 83809 |
C# Completions | 14641 |
PHP Completions | 5463 |
C Completions | 2464 |
Ruby Completions | 4802 |
Rust Completions | 2703 |
Scala Completions | 792 |
NASM Completions | 27 |
Groovy Completions | 102 |
COBOL Completions | 8 |
Haskell Completions | 507 |
Crystal Completions | 19 |
CoffeeScript Completions | 14 |
Julia Completions | 58 |
C++ Completions | 3928 |
Factor Completions | 15 |
D Completions | 7 |
Lua Completions | 64 |
TypeScript Completions | 731 |
Total Stars | 3674 |
% of votes with a positive feedback rating | 90% of 18721 |
Total "Very Satisfied" Votes | 15304 |
Total "Somewhat Satisfied" Votes | 3155 |
Total "Not Satisfied" Votes | 262 |