Challenge overview
Hello and welcome to the challenge!
Write a code which generates passwords from sentences. The result passoword should be made from first letters of words in the given sentence, with exceptions:
- instead of
i
andI
use number1
- instead of
o
andO
use number0
- instead of
s
andS
use number5
Example
password('Cogito ergo sum') -> 'Ce5'
Input
- string consisting of words made from letters and separated with spaces
Output
- password made according the rules described above
Constraints
0 < string length < 1000
You can solve this programming contest in C++, C#, Ruby, JavaScript, Python and many other languages. If you want, you can also take part in other Challenges. Below you can find some of them:
Have fun and good luck! :)