The Chakitra's language
Description:
Description and example:
A long time ago, in a galaxy not so far away (It's actually the same galaxy), there was a tribe named the Chakitra's that wrote exactly like we're used to nowadays. At least, that was what scientists believed for many, many years.
Dr. Ruby von Stiemelberg der siebenundsiebzig found out their language was not what everyone thought it was. He discovered the ancient texts the Chakitra's wrote ONLY contained words where the highest letter had an even index in the alphabet. "WUNDERBAR!", he yelled when he found out.
Lucky for us, Dr. Ruby von Stiemelberg der siebenundsiebzig was kind enough to give us some examples:
"The stone fell in the box" is a sentence he found written on a wall.
The: 'T' is the highest letter ; index of 'T' = 20 ; 20 is an even number
stone: 'T' is the highest letter ; index of 'T' = 20 ; 20 is an even number
fell: 'L' is the highest letter ; index of 'L' = 12 ; 12 is an even number
in: 'N' is the highest letter ; index of 'N' = 14 ; 14 is an even number
the: 'T' is the highest letter ; index of 'T' = 20 ; 20 is an even number
box: 'X' is the highest letter ; index of 'X' = 24 ; 24 is an even number
Sadly, some vandals recently ruined the ancient walls by writing their own texts on it. "Wie können sie!" yelled Dr. Ruby von Stiemelberg der siebenundsiebzig when he found out. It was his duty to find out the real texts.
Your job is to write a function for Dr. Ruby von stiemelberg der siebenundsiebzig, so he doesn't have to do it all manually. Goodluck noble scientist! Or, as Dr. Ruby von stiemelberg der siebenundsiebzig would say: "Viel Glück edler Wissenschaftler!"
What to return:
You should return True if the sentence is written by the Chakitra's and False if it's written by vandals.
Good to know:
- My goal is not to trick you. The Chakitra's and the vandals didn't use punctuation, so you don't have to escape those. (You can, if you want.)
- A = index 1 and Z = index 26
- The Chakitra's and the vandals ALWAYS use a blank space (" ") between words.
- The example test cases contain existing words, the other test cases won't.
- You have to return booleans, not strings like "True" or "False"
- Dr. Ruby von stiemelberg der siebenundsiebzig will be proud, no matter what happens
Similar Kata:
Stats:
Created | Mar 9, 2020 |
Published | Apr 15, 2021 |
Warriors Trained | 83 |
Total Skips | 2 |
Total Code Submissions | 154 |
Total Times Completed | 55 |
Python Completions | 55 |
Total Stars | 1 |
% of votes with a positive feedback rating | 84% of 40 |
Total "Very Satisfied" Votes | 29 |
Total "Somewhat Satisfied" Votes | 9 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 38 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |