Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'argument': 0.05; 'subject:help': 0.08; 'cc:addr:python-list': 0.11; 'wrote': 0.14; '*iterable*': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:programming': 0.16; 'subscribing': 0.16; 'typeerror:': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'print': 0.22; 'error': 0.23; 'mon,': 0.24; 'cc:2**0': 0.24; 'posts': 0.26; 'skip:" 40': 0.26; 'header :In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'list:': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'getting': 0.31; 'lines': 0.31; 'file': 0.32; 'url:python': 0.33; '(most': 0.33; 'copying': 0.34; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'replies': 0.36; 'returning': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'wrong': 0.37; 'rather': 0.38; 'recent': 0.39; 'mailing': 0.39; 'url:mail': 0.40; 'problems.': 0.60; 'mentioned': 0.61; "you're": 0.61; 'first': 0.61; 'acquiring': 0.84; 'pasting': 0.84; 'same,': 0.91; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=3E3Yk7XZkBqd8yRrRj3TR5dXr0yd+XKlfdU3MMUbVuI=; b=U4rxuaNhLrht2oRPdrOK13wOGDRVgRbio9kPRgmwuRiCwl/AzmCSuWpfS9TGIGfBLa hdq8LgCMu4zZ+bjZwv/s5fU4Np8Jt8o/PfOnr274eLKvnA3kDgksEVboQEt+m0QJg+3X P64NiQ8bAc3HPdhPG1wOI7vwxMw7nNc1VFZs+6Xp5NppJgS0t6iOukREZy6dbOat1Qrp il0YNFO5xoC+vBuGVuZxk05pTEP3h1GR7OnSrPv7NIAba6VUNQkI2s/dXZQbaZmIIur3 8FeY2LLW5DYoRPJNI01AQkBDeK1kkF2XllQuwsuInCiBniPOMpC+3wpyRbS5s99qlNyA 25KA== MIME-Version: 1.0 X-Received: by 10.66.164.136 with SMTP id yq8mr16923065pab.67.1386530223575; Sun, 08 Dec 2013 11:17:03 -0800 (PST) In-Reply-To: <78e2bedb-edcb-47ab-a89d-b62d60611481@googlegroups.com> References: <264c1144-5d04-4ad0-aa32-f4e6770d210c@googlegroups.com> <2243d31b-f2cb-484a-b6a3-f9f265aa8fd6@googlegroups.com> <78e2bedb-edcb-47ab-a89d-b62d60611481@googlegroups.com> Date: Mon, 9 Dec 2013 06:17:03 +1100 Subject: Re: python programming help From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386530226 news.xs4all.nl 2906 [2001:888:2000:d::a6]:45400 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61318 On Mon, Dec 9, 2013 at 6:06 AM, 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 > 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