Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.01; 'string.': 0.05; 'subject:Error': 0.07; 'converted': 0.09; 'python': 0.11; 'roy': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'value.': 0.19; 'entered': 0.20; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'integer': 0.24; 'string,': 0.24; 'first,': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'am,': 0.29; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; "you're": 0.61; 'smith': 0.68; 'goal': 0.75; 'article': 0.77; 'batchelder': 0.84; 'subject:Testing': 0.84; 'scott': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Gjmtg9/slzHwOHyrqpwIdyVPkPINkPFnJIEtLYzPERE=; b=iUsW80JO5Cr682Ii+qtIf5EsZDlp0etV/RW0U7IO9XcqjQmmnd3Qh4yZ+YBEvA8pKj uD7h/3EEo3KurzgozIXH5p1wUnTRPu90DtKNdDfvHfgKMStXzWnem4R1+FRlFFe1RiwH fN6jEihex6Ph04E2BLd3v+tHMI6waCDH0YCQILaey6hNiVSwCB2GAbrvWV6N1G+fWotw rXwfk5pw+MqYgSRbkaXFt/056FvA9KTjLoJZZNADU0+iTawRrxFqcy/IhuRKReJAH3fJ moiF7tT1L6bX6gyVqExDZePW08am50/zsgZzQrtUycwxfBHSFijs5maMsEDwADrLnEL8 +gKA== X-Received: by 10.224.165.12 with SMTP id g12mr11291743qay.89.1382188049948; Sat, 19 Oct 2013 06:07:29 -0700 (PDT) Sender: Ned Batchelder Date: Sat, 19 Oct 2013 09:07:29 -0400 From: Ned Batchelder User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Roy Smith , python-list@python.org Subject: Re: Error Testing References: <33549834-2f27-47f3-abea-eb3486909dec@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382188058 news.xs4all.nl 15986 [2001:888:2000:d::a6]:55719 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57099 On 10/19/13 8:57 AM, Roy Smith wrote: > On 10/19/13 8:23 AM, Scott Novinger wrote: >>> My goal is to make sure that the value entered for the radius is an integer >>> value. > In article , > Ned Batchelder wrote: > >> First, radius is the result of input(), so it is >> always a string, never an int. > input() returns ints or floats for values which can be converted to > those. I suspect you're thinking of raw_input()? In Python 3, input() returns a string. --Ned.