+ 18
[CHALLENGE]Encrypt the sentence
Given a Sentence,write a code to encrypt the sentence based on the following rules: 1.The words at odd position should be reversed. 2.The words at even position should have all the vowels(in same order they appear in the word)at the beginning,followed by the consonants. E.g: sentence="the sun rises in the east" encrypted_sentence=" eth nus ierss ni eth tsae"
8 Réponses
+ 19
Thank you for confirmation 😉
Here's my try :
https://code.sololearn.com/c9h7avQeSw4L/?ref=app
+ 14
Nice challenge 👍
The word position counts from 0 (first word = position 0, second word = position 1, etc).
Right?
+ 9
@~ swim ~
great!!
Thanks for taking part👍
+ 5
@LukArToDo Yes you are right👍
+ 5
Nice👍
Thanks alot for taking part😊
+ 2
Give me some time I will Make it according to your rules.till then check this out.
I have made this a couple of days ago ago.
https://code.sololearn.com/c0uMRM12sc7Q/?ref=app
+ 2
SHAIKH SALMAN Sure 😊😄