this question has answer here:
- why list.append evaluate false? 5 answers
if valst
true list (containing elements), why work:
valst.append(seq) id_seq_dict[id] = valst
but not work:
id_seq_dict[id] = valst.append(seq)
is because append method returns nothing?
the append()
method modifies list , returns nothing (none
) indeed.
Comments
Post a Comment