Archive for the ‘Fun’ category

Rot 13 encryption using python!

March 23rd, 2012

Dear Folks,

somewhere deep down the internet I found a little bit of code to encrypt a string with rot 13 conversion. I augmented the script such that it can take a string from a file and encrypt it. So far, it only works for lowercase letters. One day, there might be a version that also works for uppercase letters. The string you want to encrypt is in the file “Text.txt”. So, here it is (unfortunately, the indentation got broken, so you have to figure out the python indention on your own):


import string

def make_rot_n(n):
lc = string.lowercase
trans = string.maketrans(lc, lc[n:] + lc[:n])
return lambda s: string.translate(s, trans)

rot13 = make_rot_n(13)

f = open ('Text.txt', 'r')
Data = f.readline()

print(rot13(Data))

Funniest soccer goal celebration ever

October 19th, 2010

Here is a funny youtube video that shows a soccer team celebrating their goal. Watch it and enjoy.

Cheers,
Stefan