#!/bin/python
from functools import reduce
import sys

def adder(the_dict):
	return reduce((lambda x, y:
	the_dict[x] + the_dict[y]
	#sys.stdout.write(
	#'***\n\n'+
	#'x is not None\n'+repr(x is not None)+'\n'+
	#'y is not None\n'+repr(y is not None)+'\n'+
	#' x: ' + repr(x) + ' y: ' + repr(y)+'\n***\n\n')
	if x is not None and y is not None else
	the_dict[x]
	#sys.stdout.write(
	#'***\n\n'+
	#'x is not None\n'+repr(x is not None)+'\n'+
	#'y is not None\n'+repr(y is not None)+'\n'+
	#' x: ' + repr(x) + ' y: ' + repr(y)+'\n***\n\n')
	if x is not None else
	the_dict[y]
	#sys.stdout.write(
	#'***\n\n'+
	#'x is not None\n'+repr(x is not None)+'\n'+
	#'y is not None\n'+repr(y is not None)+'\n'+
	#' x: ' + repr(x) + ' y: ' + repr(y)+'\n***\n\n')
	if y is not None else None)
	,the_dict)

d={'a':'fuck ','b':'this ','c':'pluses '}
print('d is\n',d)
print(adder(d))
