the actual meaning of “Merry Christmas”
Dec 14
2009
2009
import re greeting = "Merry Christmas" greeting_list = map(chr, [ord(i) - len(greeting) - 1 for i in greeting]) greeting_list = set(filter(lambda x: re.match('[a-z]|[A-Z]', x), greeting_list)) # greeting_list is set(['c', 'b', 'd', 'i', 'Q', 'U', 'Y', 'X']) # the 1st 3 elements are not clear to me: c,b,d # 'i' means 'I', 'Q' means 'question', 'U' means 'you', 'Y' means 'why', 'X' means 'Christmas' # which makes the compound: 'I question you - why Christmas?'
Right?
Comment