Skip to content
Advertisement

Tag: mutators

Appending turns my list to NoneType [duplicate]

This question already has answers here: Why do these list operations (methods: clear / extend / reverse / append / sort / remove) return None, rather than the resulting list? (6 answers) Closed 5 months ago. In Python Shell, I entered: and got but when I tried: and got Does anyone know what’s going on? How can I fix/get around

Advertisement