Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61318
| References | <264c1144-5d04-4ad0-aa32-f4e6770d210c@googlegroups.com> <mailman.3733.1386527267.18130.python-list@python.org> <2243d31b-f2cb-484a-b6a3-f9f265aa8fd6@googlegroups.com> <mailman.3737.1386529135.18130.python-list@python.org> <78e2bedb-edcb-47ab-a89d-b62d60611481@googlegroups.com> |
|---|---|
| Date | 2013-12-09 06:17 +1100 |
| Subject | Re: python programming help |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3739.1386530226.18130.python-list@python.org> (permalink) |
On Mon, Dec 9, 2013 at 6:06 AM, <rafaellasav@gmail.com> wrote: > but when i wrote these lines it returns me an error > Traceback (most recent call last): > File "/Users/rafaellasavva/Desktop/people.py", line 19, in <module> > print 'Dan' in people(18) and 'Cathy' in people(18) > TypeError: argument of type 'NoneType' is not utterable > > do you know what it might be wrong? Hehe. The first thing that's wrong is that you're retyping the error instead of copying and pasting it. The problem is actually that it's not *iterable* here. And the reason for that is that you're printing the result instead of returning it, as has been mentioned by a few people. Also, your posts are acquiring the slimy stain of Google Groups, which makes them rather distasteful. All your replies are getting double-spaced, among other problems. Please consider switching to an alternative newsgroup reader, or subscribing to the mailing list: https://mail.python.org/mailman/listinfo/python-list The content is the same, but it comes by email instead of netnews. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python programming help rafaellasav@gmail.com - 2013-12-08 09:59 -0800
Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-08 19:07 +0100
Re: python programming help rafaellasav@gmail.com - 2013-12-08 10:14 -0800
Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-08 19:18 +0100
Re: python programming help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-08 18:25 +0000
Re: python programming help Christopher Welborn <cjwelborn@live.com> - 2013-12-09 17:34 -0600
Re: python programming help Roy Smith <roy@panix.com> - 2013-12-08 13:23 -0500
Re: python programming help Gary Herron <gary.herron@islandtraining.com> - 2013-12-08 10:20 -0800
Re: python programming help bob gailer <bgailer@gmail.com> - 2013-12-08 13:27 -0500
Re: python programming help rafaellasav@gmail.com - 2013-12-08 10:32 -0800
Re: python programming help rafaellasav@gmail.com - 2013-12-08 10:42 -0800
Re: python programming help Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-12-08 10:52 -0800
Re: python programming help rafaellasav@gmail.com - 2013-12-08 11:06 -0800
Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-09 06:17 +1100
Re: python programming help rurpy@yahoo.com - 2013-12-08 16:08 -0800
Re: python programming help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-09 00:27 +0000
Re: python programming help rurpy@yahoo.com - 2013-12-08 21:07 -0800
Re: python programming help rusi <rustompmody@gmail.com> - 2013-12-08 21:20 -0800
Re: python programming help rurpy@yahoo.com - 2013-12-09 21:15 -0800
Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-09 18:57 +1100
Re: python programming help rurpy@yahoo.com - 2013-12-09 21:07 -0800
Re: python programming help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-09 09:34 +0000
Meta Fight About Posting (was: python programming help) Travis Griggs <travisgriggs@gmail.com> - 2013-12-09 07:44 -0800
Re: Meta Fight About Posting (was: python programming help) rusi <rustompmody@gmail.com> - 2013-12-09 08:25 -0800
Re: Meta Fight About Posting (was: python programming help) rusi <rustompmody@gmail.com> - 2013-12-09 08:47 -0800
Re: Meta Fight About Posting (was: python programming help) Roy Smith <roy@panix.com> - 2013-12-09 13:48 -0500
Re: Meta Fight About Posting (was: python programming help) Roy Smith <roy@panix.com> - 2013-12-09 13:45 -0500
Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-09 14:05 +1100
Re: python programming help rurpy@yahoo.com - 2013-12-08 21:10 -0800
Re: python programming help Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-09 00:22 -0500
Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-09 19:15 +1100
Re: python programming help rurpy@yahoo.com - 2013-12-09 21:10 -0800
Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-10 16:29 +1100
Re: python programming help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-08 19:21 +0000
Re: python programming help Terry Reedy <tjreedy@udel.edu> - 2013-12-08 16:17 -0500
Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-09 03:02 +0100
Re: python programming help John Ladasky <john_ladasky@sbcglobal.net> - 2013-12-08 11:21 -0800
Re: python programming help Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-09 13:00 +1300
Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-09 02:51 +0100
Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-09 03:31 +0100
csiph-web