+ 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"

25th Mar 2018, 1:05 PM
Mitali
Mitali - avatar
8 Answers
+ 19
Thank you for confirmation 😉 Here's my try : https://code.sololearn.com/c9h7avQeSw4L/?ref=app
25th Mar 2018, 6:36 PM
LukArToDo
LukArToDo - avatar
+ 14
Nice challenge 👍 The word position counts from 0 (first word = position 0, second word = position 1, etc). Right?
25th Mar 2018, 6:01 PM
LukArToDo
LukArToDo - avatar
+ 9
@~ swim ~ great!! Thanks for taking part👍
26th Mar 2018, 8:43 AM
Mitali
Mitali - avatar
+ 5
@LukArToDo Yes you are right👍
25th Mar 2018, 6:04 PM
Mitali
Mitali - avatar
+ 5
Nice👍 Thanks alot for taking part😊
25th Mar 2018, 6:42 PM
Mitali
Mitali - avatar
25th Mar 2018, 1:28 PM
LordHill
LordHill - avatar
+ 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
23rd May 2018, 6:30 PM
Salman
Salman - avatar
+ 2
SHAIKH SALMAN Sure 😊😄
23rd May 2018, 6:32 PM
Mitali
Mitali - avatar