Why doesn't the second output print [1, 2, 3, .... , 7, 8, 9] ?<br>The code is run at: <a href="http://codepad.org/wgLU4JZh">http://codepad.org/wgLU4JZh</a><br><br>class A():<br>    def __init__(self):<br>        self.n = [1, 2, 3, 4, 5]<br>
        <br>a = A()<br>print a.n<br>print a.n.extend([6, 7, 8, 9])<br><br>#Output:<br>#[1, 2, 3, 4, 5]<br>#None<br><br>I really don't know, but I'm probably missing something. Any pointers would be great.<br><br>Best regards,<br>
<br clear="all">Ching-Yun "Xavier" Ho, Technical Artist<br><br>Contact Information<br>Mobile: (+61) 04 3335 4748<br>Skype ID: SpaXe85<br>Email: <a href="mailto:contact@xavierho.com">contact@xavierho.com</a><br>Website: <a href="http://xavierho.com/">http://xavierho.com/</a><br>