Path: csiph.com!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.187 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.70; '*S*': 0.08; 'integral': 0.09; 'wrote:': 0.16; '2015': 0.20; 'sep': 0.22; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'fine': 0.28; 'values.': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'to:addr:python.org': 0.40; 'subject:value': 0.84; 'to:name:python': 0.84; 'subject:Check': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=PEmu8bCqRmr78AoeoWlom9oNN37pDubYDu5bbZBSemw=; b=V3nUXpE4sQvsM5n2etb83lsz0pjsFJ9BpoC6y0gIN9y4T3n7X8F/lwvCH6ampD3PAg qCny7qiM9M95MGnnfL3u2haW1Fs8Zs/M4Yey7Tok7mFRJdryrPDi3ZU3hhhb78TI2TcV 3ofQmyC7+9PeUtL/JQn5b+OSVC/L5TiOK3/+cYIBQVJVxCo6IAiPEvEGAcv8emV5rR0k BeowLUF0ZbUA+wUCmqkewlbFA28pju+mT84QRuPibkgacbJ8YbeyKD1OKJ76DYoxtIHk 2oX1A3Vt+NMSmJJrBLJ+taga+wwGTGXICBMUAaLi/acfiGn9Sz98XUVV7OK0Qqi1OGql iRnA== X-Received: by 10.129.145.214 with SMTP id i205mr110952ywg.64.1443560902047; Tue, 29 Sep 2015 14:08:22 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1443560672.3996136.396949593.363A855B@webmail.messagingengine.com> References: <1443560672.3996136.396949593.363A855B@webmail.messagingengine.com> From: Ian Kelly Date: Tue, 29 Sep 2015 15:07:42 -0600 Subject: Re: Check if a given value is out of certain range To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 4 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1443560905 news.xs4all.nl 23823 [2001:888:2000:d::a6]:38556 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:97219 On Tue, Sep 29, 2015 at 3:04 PM, Random832 wrote: > How about x not in range(11)? That's fine as long as x is known to only take integral values.