Skip to content

Monty Python Mystery Cache

Hidden : 9/25/2016
Difficulty:
3 out of 5
Terrain:
2 out of 5

Size: Size:   micro (micro)

Join now to view geocache location details. It's free!

Watch

How Geocaching Works

Please note Use of geocaching.com services is subject to the terms and conditions in our disclaimer.

Geocache Description:

No, of course it isn't at the above co-ordinates! Is it ever? But they're quite a good place to park.
The cache is close to the canal, so the usual warning about discouraging kids from falling in applies.

I recently changed jobs, so I had to clear out my desk. Which turned up the usual collection of rubbish, fifteen-year-old paperwork, carefully-worded performance reviews and, of course, the occasional abandoned programming project .....

# Monty isn't 3 yet, he's only 2.7!
import random;

#Meaning of life ... oops, different comedy!
random.seed(42);
lucky=7;

class Geocache:
      def __init__(self,coords,hint):
            self.coords=coords;
            self.hint=hint;

      def __str__(self):
            return(self.coords+" "+self.hint);

      def set_hint(self,hint):
            self.hint=hint;

      def get_hint(self):
            return self.hint;

# We want ..... a shrubbery!

cache_list=[];
cache_list.append(Geocache("N 52 23.255 W 001 43.350","Slopey, ivy"));
cache_list.append(Geocache("N 52 23.317 W 001 43.369","MTT"));
cache_list.append(Geocache("N 52 23.356 W 001 43.396","Base of fallen tree"));
cache_list.append(Geocache("N 52 23.396 W 001 43.430","Large ICT"));
cache_list.append(Geocache("N 52 23.459 W 001 43.491","Post"));
cache_list.append(Geocache("N 52 23.502 W 001 43.538","'34'"));
cache_list.append(Geocache("N 52 23.554 W 001 43.587","Hanging by metal fence"));

# Pick a cache .... any cache ...
n=random.randint(0,len(cache_list));

#It's your lucky day!
n=((n*9)//10 + (n*9)%10 - lucky);
cache_list[n].set_hint(cache_list[n].get_hint()+"<<THIS ONE!");

# Harry,
# When you get back from lunch, can you add something to print the contents
# of cache_list, please?
#         - The Boss
#
# PS: I don't want to know what you get up to in the lunch break, but please
# DON'T come to this afternoon's meeting with bits of tree in your hair. Again.

Additional Hints (No hints available.)