Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.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.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.06; 'steve': 0.09; '22,': 0.09; 'integers': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hayes': 0.16; 'heads.': 0.16; 'it;': 0.16; 'limit,': 0.16; 'normally,': 0.16; 'wrote:': 0.18; 'basically': 0.19; "python's": 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'either.': 0.24; 'integer': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'worked': 0.33; 'limitation': 0.33; 'older': 0.33; 'could': 0.34; 'basic': 0.35; 'beyond': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:new': 0.38; 'ability': 0.39; 'subject:" ': 0.39; 'even': 0.60; 'most': 0.60; 'gone': 0.61; 'length': 0.61; 'numbers': 0.61; "you're": 0.61; 'first': 0.61; 'show': 0.63; 'more': 0.64; 'discovered': 0.83; '2015': 0.84; 'amazed': 0.84; 'so...': 0.84; 'versions)': 0.84; 'to:none': 0.92 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=/0R4Xx8BQOEP1ageVmcloTIf9wE0jreh3t8x4GNvf/k=; b=sleuI6uJMxnCaKLsXCC7/Yh8dEGXo+tJCwebdkiyjAeemss9Htssmb2Qy8XX5Wkirq gnHkLm4uCHgK701GhkwP5QB0DtIRkIw4SZBDT5SM0XIhe0yIFcst4kTcxUR3DPQ4Q+Xj xEF3q4f+RC6ZUN6YRcPu4StvqZvLWt/upJ+FQlNGzlSCcnrheoCE0YAaog63kIryojSC I4SLhBcodVtF+vJCOIwb80O1gOMDlzwxyypQ41VZtJAshQ29KCbacCTCqPp6jSYm2OfK o2LNvnt/FpBXJALF8nlrZ9yN+k9HFUc9LJ13uYjle78r+BpB9ENXhh9SxJNDkGD8+rKX Osmg== MIME-Version: 1.0 X-Received: by 10.224.128.196 with SMTP id l4mr71378022qas.100.1421867170666; Wed, 21 Jan 2015 11:06:10 -0800 (PST) In-Reply-To: <54bfedf5$0$2876$e4fe514c@news.xs4all.nl> References: <82qvba51o427s4m63agk6ghekm0btg81on@4ax.com> <54bfedf5$0$2876$e4fe514c@news.xs4all.nl> Date: Thu, 22 Jan 2015 06:06:10 +1100 Subject: Re: How to "wow" someone new to Python 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421867178 news.xs4all.nl 2964 [2001:888:2000:d::a6]:40080 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84138 On Thu, Jan 22, 2015 at 5:20 AM, Irmen de Jong wrote: > On 21-1-2015 18:59, Steve Hayes wrote: > >> 3. When I started to look at it, I found that strings could be any length and >> were not limited to swomething arbitrary, like 256 characters. > > Even more fun is that Python's primitive integer type (longs for older Python versions) > has no arbitrary limitation either. > > That amazed me at the time I discovered python :) I hadn't worked with length-limited strings in basically forever (technically BASIC has a length limit, but I never ran into it; and I never did much with Pascal), but you're right, arbitrary-precision integers would have impressed me a lot more if I hadn't first known REXX. So... is there a way to show that off efficiently? Normally, any calculation that goes beyond 2**32 has already gone way beyond most humans' ability to hold the numbers in their heads. ChrisA