# Python 2, 51 bytes <!-- language-all: lang-python --> lambda s='lambda s=%r:51/len(s)*s%%s':51/len(s)*s%s I'm assuming function quines are allowed.