0

If valst is a True list (containing elements), why does this work:

valst.append(seq)
id_seq_dict[id] = valst

But this does not work:

id_seq_dict[id] = valst.append(seq)

Is it because the append method returns nothing?

Benj
  • 13
  • 2

1 Answers1

0

The append() method modifies the list and returns nothing (None) indeed.

proycon
  • 485
  • 3
  • 9