Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61033
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.062 |
| X-Spam-Evidence | '*H*': 0.88; '*S*': 0.01; 'string': 0.09; 'assuming': 0.09; 'lawrence': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:break': 0.16; 'subject:possible': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'source': 0.25; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'tim': 0.29; "doesn't": 0.30; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; 'getting': 0.31; "we're": 0.32; 'but': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'anything': 0.39; 'numbers': 0.61; "you're": 0.61; 'email addr:gmail.com': 0.63; 'more': 0.64; 'yes': 0.68; 'line,': 0.68; 'nobody': 0.68; 'day': 0.76; 'asked.': 0.84; '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=MA95fcyo7MuUOX6i0xzC4bZIr0qHUtKw15srI7K3ego=; b=BY+enWG97OVYdGSgR1BOgCdalowRFOXffXJEne4aNpWe/6cuG48lyMCLe9HQ2e4OYg KL4YtzKusww50Mrh/0sqp3W9sxsUmlaTu3X6oO253aEHKJAOJU8orVByJgwp662dmA8G T9MWsQUI2s9go2s5zVFE9JBh5Bv0QU/rZbMAPk7lsjrkFeblFTjuam1H1gADNc52Dw8a jwCTUU3w1r/15yVHrOWK3JQKrAUMChRJIYM3y9KNamFxlXACYbJ89Vw44AJEHdBWrnl8 ZIpHHDkHFpz4ZgPHz8BLRa+Epnu9GfJhXUq6NfbnUVdp0TEX72gY8R2ekDKZKflzFUbO rNdQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.66.102.39 with SMTP id fl7mr83531503pab.43.1386173658416; Wed, 04 Dec 2013 08:14:18 -0800 (PST) |
| In-Reply-To | <l7njp8$j0l$1@ger.gmane.org> |
| References | <6f831d02-26bf-4e68-a1c6-a9c9e87db1dc@googlegroups.com> <l7njp8$j0l$1@ger.gmane.org> |
| Date | Thu, 5 Dec 2013 03:14:18 +1100 |
| Subject | Re: Input without line break, is it possible? |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3572.1386173667.18130.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1386173667 news.xs4all.nl 2893 [2001:888:2000:d::a6]:48790 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:61033 |
Show key headers only | View raw
On Thu, Dec 5, 2013 at 3:04 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote: > On 04/12/2013 15:38, geezle86@gmail.com wrote: >> >> The source code: >> >> for i in range(8): >> n = input() > > Yes you can get them on a single line, see the response from Tim Chase. But > just to be crystal clear, are you aware that you're getting string > representations of numbers, and not the numbers themselves? Just to clarify, this is assuming that you're using Python 3. Geezle, if you're using Python 2, you need to not use input() for anything - use raw_input() instead, which will do what we're describing here. I yearn for the day when nobody uses Python 2 any more so this doesn't need to be asked. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Input without line break, is it possible? geezle86@gmail.com - 2013-12-04 07:38 -0800 Re: Input without line break, is it possible? Tim Chase <python.list@tim.thechases.com> - 2013-12-04 09:55 -0600 Re: Input without line break, is it possible? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-04 16:04 +0000 Re: Input without line break, is it possible? [correction] Tim Chase <tim@thechases.com> - 2013-12-04 10:07 -0600 Re: Input without line break, is it possible? Chris Angelico <rosuav@gmail.com> - 2013-12-05 03:14 +1100 Re: Input without line break, is it possible? Michael Torrie <torriem@gmail.com> - 2013-12-04 09:23 -0700 Re: Input without line break, is it possible? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-04 16:27 +0000 Re: Input without line break, is it possible? Chris Angelico <rosuav@gmail.com> - 2013-12-05 03:33 +1100 Re: Input without line break, is it possible? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-04 16:36 +0000 Re: Input without line break, is it possible? Michael Torrie <torriem@gmail.com> - 2013-12-05 08:21 -0700
csiph-web