the-honk/languages/python/pythonchallenge.com/5 - Peak Hell.py

8 lines
No EOL
203 B
Python

import pickle
import urllib.request
raw = urllib.request.urlopen('http://www.pythonchallenge.com/pc/def/banner.p')
data = pickle.load(raw)
for line in data:
print(''.join([k * v for k, v in line]))