Passwords From Sentences Easy

+50 PTS

Before you start the test, check out our tutorial challenge

  • TYPE CODE PRACTICE CHALLENGE
  • LANGUAGES C++, C#, JAVA, JAVASCRIPT AND 6 MORE
    LANGUAGES C++, C#, JAVA, JAVASCRIPT, PHP, PYTHON2, PYTHON, RUBY, SWIFT, TYPESCRIPT
  • TIME ~10MIN

Passwords From Sentences

Challenge outline

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 and I use number 1
  • instead of o and O use number 0
  • instead of s and S use number 5

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 September 2019 competitions. Below you can find some of them:



Have fun and good luck! :)