Done challenge 6
[cipher-challenge.git] / 2020 / 2020-challenge5.ipynb
index 363693c0260112dd4fef526d3d76e0eac95de887..fbedeb9585cf51fc7c394dcc9a08a003062399fb 100644 (file)
     "[pbs[i+1] for i, w in enumerate(pbs) if w == 'stop']"
    ]
   },
+  {
+   "cell_type": "code",
+   "execution_count": 106,
+   "metadata": {
+    "Collapsed": "false"
+   },
+   "outputs": [
+    {
+     "data": {
+      "text/plain": [
+       "'ttargetrdfk'"
+      ]
+     },
+     "execution_count": 106,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "pbs = pb.split()\n",
+    "cat(pbs[i+1][0] for i, w in enumerate(pbs) if w == 'stop')"
+   ]
+  },
   {
    "cell_type": "code",
    "execution_count": 90,