Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!goblin1!goblin3!goblin.stu.neva.ru!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: None returned Date: Tue, 27 Oct 2015 15:02:59 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 18 Message-ID: References: NNTP-Posting-Host: panix3.panix.com X-Trace: reader1.panix.com 1445958179 28791 166.84.1.3 (27 Oct 2015 15:02:59 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 27 Oct 2015 15:02:59 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:97971 In pip7kids@gmail.com writes: > print(rectangle.describe("this is a new rectangle")) You're printing the result of describe(). > def describe(self,text): > self.description = text describe() has no return value, so it returns None by default. If you want it to return something, make it do that. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"