def f(k,v):
dict={}#Создаем словарь
klen=len(k)# Колво ключей
vlen=len(v)# Колво значений
for i in range(min(klen,vlen)):
dict[k[i]]=v[i]#
if klen>vlen:#
for i in range(vlen,klen):#
dict[k[i]]=None#
return dict
k=[1,2,3,4,5]
v=[1,2,3]
print(f(k,v))
k=[1,2]
v=[1,2,3]
print(f(k,v))
k=[1,2,3]
v=[1,2,3]
print(f(k,v))
ZGVmIGYoayx2KToKICAgIGRpY3Q9e30j0KHQvtC30LTQsNC10Lwg0YHQu9C+0LLQsNGA0YwKICAgIGtsZW49bGVuKGspIyDQmtC+0LvQstC+INC60LvRjtGH0LXQuQogICAgdmxlbj1sZW4odikjINCa0L7Qu9Cy0L4g0LfQvdCw0YfQtdC90LjQuQogICAgZm9yIGkgaW4gcmFuZ2UobWluKGtsZW4sdmxlbikpOgogICAgICAgIGRpY3Rba1tpXV09dltpXSMKICAgIGlmIGtsZW4+dmxlbjojCiAgICAgICAgZm9yIGkgaW4gcmFuZ2UodmxlbixrbGVuKTojCiAgICAgICAgICAgIGRpY3Rba1tpXV09Tm9uZSMKICAgIHJldHVybiBkaWN0Cms9WzEsMiwzLDQsNV0Kdj1bMSwyLDNdCnByaW50KGYoayx2KSkKaz1bMSwyXQp2PVsxLDIsM10KcHJpbnQoZihrLHYpKQprPVsxLDIsM10Kdj1bMSwyLDNdCnByaW50KGYoayx2KSk=