6
$\begingroup$

My teacher set me some homework:

enter image description here

What is the answer to my homework?


You will also need a copy of my homework to help you.

You don't need the image to solve the puzzle, that is just a preview.

Hint:

The question is from my computer science teacher, who has been experimenting with some strange programming languages...

After solving

I couldn't write the text out on SE because it doesn't allow tabs.

$\endgroup$
  • $\begingroup$ Is this legitimately your homework? $\endgroup$ – Beastly Gerbil Jan 27 '17 at 18:14
  • 1
    $\begingroup$ @BeastlyGerbil no $\endgroup$ – Melkor Jan 27 '17 at 18:16
  • 1
    $\begingroup$ Good. Just had to ask. And if it was, then I would definitely be wondering what sort of school you go to :P $\endgroup$ – Beastly Gerbil Jan 27 '17 at 18:19
  • 2
    $\begingroup$ @Melkor Why an image? could you write it out instead? $\endgroup$ – dcfyj Jan 27 '17 at 18:31
  • 2
    $\begingroup$ @Will: These are not all spaces; they are spaces and tabs. $\endgroup$ – M Oehm Jan 27 '17 at 19:53
6
$\begingroup$

Solution 1:

As M Oehm said, if you convert the spaces after the lines to 0 and the tabs as 1, you get:

0001101001
0000100000
111100
00110011
100000
1110011
1100011
1101000
1101111
1101111
1101100
Converting this to ASCII, you get the message <3 school.

Solution 2:

If you run this in the esoteric programming language Whitespace, you get the message i <3 school. Try it online!

$\endgroup$
  • $\begingroup$ Well done to @Oliver and @M Oehm! $\endgroup$ – Melkor Jan 27 '17 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.