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) - analyzes text (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:

More By Author:

Check out these other kata created by mauro-1

Stats:

CreatedDec 23, 2020
PublishedDec 23, 2020
Warriors Trained434
Total Skips8
Total Code Submissions4633
Total Times Completed127
Python Completions123
Ruby Completions8
Total Stars10
% of votes with a positive feedback rating93% of 49
Total "Very Satisfied" Votes43
Total "Somewhat Satisfied" Votes5
Total "Not Satisfied" Votes1
Total Rank Assessments14
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • mauro-1 Avatar
  • ozichukwu Avatar
Ad