Today I spent about 20 minutes trying to figure out why this worked as expected:
users_stories_dict[a] = s + [b]
but this would have a None
value:
users_stories_dict[a] = s.append(b)
Anyone know why the append function does not return the new list? I'm looking for some sort of sensible reason this decision was made; it looks like a Python novice gotcha to me right now.