Ho una funzione che accetta una stringa, la lista e un dizionarioValueError: troppi valori per disfare in Python dizionario
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
ma restituisce un errore
ValueError: too many values to unpack
i miei parametri sono
superDynaParams('Mark Paul',
'programming','arts','japanese','literature','music',
father='papa',mother='mama',sister='neechan',brother='niichan')
possibile duplicato del [Python ValueError: troppi valori per disfare] (http://stackoverflow.com/questions/7053551/python-valueerror-too-many-values-to-unpack) –