Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Denis McMahon Newsgroups: comp.lang.python Subject: Re: I am out of trial and error again Lists Date: Fri, 24 Oct 2014 20:37:31 +0000 (UTC) Organization: A noiseless patient Spider Lines: 25 Message-ID: References: <2412654f-ac5e-4678-8956-afc4e27affb3@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 24 Oct 2014 20:37:31 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="23528"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eYjN3yIUiBioZXi3Zax1YGDYLOJ6Husk=" User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) Cancel-Lock: sha1:ZYzk1U0dGO08B12KA+YcsSuopzg= Xref: csiph.com comp.lang.python:79612 On Fri, 24 Oct 2014 10:38:31 -0400, Seymore4Head wrote: > I tried list(range(10) This is missing a ")" It probably sat there waiting for you to finish the line. list(range(10)) You have two "(" in the line, you need two ")" to match them. > I thought that would work in Python 3. It > didn't. It does if you enter it properly. also try: str(list(range(10))) Note that that has three "(" and three ")" on the line. -- Denis McMahon, denismfmcmahon@gmail.com