On Feb 8, 7:04 pm, António Ramos <ramstei...@gmail.com> wrote: > var1={'1':'','2':'','3':'','4':'','5':'','6':'','7':'','8':'','9':'','10':'','11':'','12':'','13':'','14':'','15':'','16':'','17':'','18':'','19':''}
def f(i, d={}): if i<=0: return d return f(i-1, dict(d.items() + [(str(i), '')])) print f(19) “To iterate is human, to recurse divine.” (L. Peter Deutsch) "I wouldn't actually do it this way in my own code" (Me)