-
Notifications
You must be signed in to change notification settings - Fork 26
/
riddle.html
28 lines (20 loc) · 1.31 KB
/
riddle.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>Python Riddle</title>
<link rel="stylesheet" type="text/css" href="style.css">
<body>
<p class="subtle"><a href="/">« Boston Python puzzles</a></p>
<h1>Python Riddle</h1>
<p>Q: What did the programmer say to the hurricane?</p>
<pre>
3 2 2 2 0 2 0 2 4 3 4 0 0 4 3 0 2 0 3 0 3 0 2 4 4 4 4 2 0 2 0 1
1 0 1 4 0 4 4 4 4 4 3 4 4 3 3 4 4 1 3 1 4 1 4 0 0 2 1 1 4 4 4 4
0 2 3 4 4 0 4 0 0 4 0 0 4 4 4 0 4 1 0 2 1 3 3 0 2 0 4 0 2
4 4 2 1 1 4 1 0 1 1 3 2 2 2 2 4 2 4 0 3 0 0 4 3 4 0 4 1 4 0 3
2 1 3 0 3 4 2 4 4 2 0 2 2 1 3 2 4 0 4 0 4 2 2 2 4 1 4 0 3 0
</pre>
<p>Write a program to decode the punchline.</p>
<p>BONUS: Write a program that generates the encoded punch-lines to such jokes.</p>
<h2>Solutions</h2>
<p>If you have a solution you'd like to share see the <a href="solutions.html">Solutions page</a> for instructions.</p>