Skip to content

Instantly share code, notes, and snippets.

import urllib2, re, sys
uri = 'http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing='
nothing = '12345'
def get_next(nothing):
request = request = urllib2.Request(uri + nothing)
result = str(urllib2.urlopen(request).read())
if 'html' in result:
print("secret word :D -----> " + result)
import re
import itertools
especial_letters = set()
in_file = open('pc_03.txt', "rt")
while True:
line = in_file.readline()
if not line:
break
file_characters = open("pc_02.txt", "rt")
characters = file_characters.read()
file_characters.close()
occurrences = {}
for l in characters:
occurrences[l] = str.count(characters, l)
for k, v in occurrences.items():
if v == 1:
def conv(x):
i = ord(x)
if i < 121:
return chr(i + 2)
elif i == 121:
return chr(ord('a'))
elif i == 122:
return chr(ord('b'))
alfabeto = list(x for x in 'abcdefghijklmnopqrstuvwxyz')