6 kyu
Investigator's holidays and hidden messages
123 of 127mauro-1
Description:
History
You are a great investigator. You are spending Christmas holidays with your family when you receive a series of postcards.
At first glance the text on the postcards doesn't make sense (why send random quotes?), but after a closer look you notice something strange.
Maybe there is a hidden message!
Technical details
Your task is to create a class Investigator
with at least these two methods:
postcard(self, text)
- analyzestext
(a string); return value doesn't matter.hidden_message(self)
- returns the hidden message (a string).
Typical usage:
investigator = ... # new instance of Investigator
investigator.postcard(text of first postcard)
investigator.postcard(text of second postcard)
investigator.postcard(...)
investigator.postcard(text of last postcard)
investigator.hidden_message() # return value is checked
# investigator goes out of scope
- 1-15 postcards per instance
- one hidden message per instance
Strings
Puzzles
Similar Kata:
Stats:
Created | Dec 23, 2020 |
Published | Dec 23, 2020 |
Warriors Trained | 434 |
Total Skips | 8 |
Total Code Submissions | 4633 |
Total Times Completed | 127 |
Python Completions | 123 |
Ruby Completions | 8 |
Total Stars | 10 |
% of votes with a positive feedback rating | 93% of 49 |
Total "Very Satisfied" Votes | 43 |
Total "Somewhat Satisfied" Votes | 5 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 14 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |