def funky(a, b):
        """if string then cconcatenate
        """
        if type(a) == dict and type(b) == dict:
            return  dict(a.items() + b.items()) 
        elif type(a) == type(b):
            return a + b
        elif 
        else: 
            return "invalid" 





print funky(3, 4)
print funky({"one":"ten" ,"two": "girl"}, {"baby":"boy","big":"cup"})
print funky(2, 2.567)
print funky([10,20, 30], [39, 67, 59])
print funky (12, 67)
print funky('str', 4)



#if type(a) == type(b)
    #return a + b

