Ich habe eine Funktion, die eine Zeichenfolge, Liste und ein WörterbuchValueerror: zu viele Werte in Python Wörterbuch auspacken
def superDynaParams(myname, *likes, **relatives): # *n is a list and **n is dictionary
print '--------------------------'
print 'my name is ' + myname
print 'I like the following'
for like in likes:
print like
print 'and my family are'
for key, role in relatives:
if parents[role] != None:
print key + ' ' + role
aber es gibt einen Fehler
ValueError: too many values to unpack
meine Parameter sind
akzeptiertsuperDynaParams('Mark Paul',
'programming','arts','japanese','literature','music',
father='papa',mother='mama',sister='neechan',brother='niichan')
möglich Duplikat [Python Valueerror: zu viele Werte entpacken] (http://stackoverflow.com/questions/7053551/python-valueerror-too-many-values-to-unpack) –