Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed0.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2a.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'cc:addr:python-list': 0.11; 'subject:Help': 0.11; 'python': 0.11; '1:13': 0.16; '24,': 0.16; 'parentheses': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.18; 'appears': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; '2.x': 0.24; 'skip': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; '3.x': 0.31; 'received:google.com': 0.35; 'changing': 0.37; 'pm,': 0.38; 'skip:p 20': 0.39; 'to:addr:gmail.com': 0.65; 'mar': 0.68; '2015': 0.84 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:to :cc:content-type; bh=8zqBArpmpk7yPWygv658+Sf7po+kM81zV+R/62dJmqw=; b=cB9rgsp9IaUvxqqTD0YIyEBPRy+vD+CLjCBEUGgIay5WplroDxYgHYg0Lu+1A7f29x tehRFS7+VFcXM27UEyAKSttPp0vDfG3d4ib7xHJfEkbcGJq2dXyHSXEUnnHV2vV0YSeZ aEJCW81EwDE7E+Q7ZwM89ug6Fm+dmOo+TGI6f77iLwEHjpMOkkQ+qmRmbjet2uKdEfsf 4Lws/Io+rDYvVSuvAVPXiOnU3HS0UsjIe4+bZw7PCf/g40NX/mxcmbIH8m1gyMLlIU7D Srd7Fq0ZPOmSt+kMwGAKLX0obZ0VHFY3Sfa0W0q72Bme02xtT47ynyylxoFZ3WNRPTQn nV2Q== MIME-Version: 1.0 X-Received: by 10.202.60.66 with SMTP id j63mr4038832oia.83.1427221426726; Tue, 24 Mar 2015 11:23:46 -0700 (PDT) In-Reply-To: <099b0ca2-1f5e-4eb4-a7d0-d8210bcca51a@googlegroups.com> References: <099b0ca2-1f5e-4eb4-a7d0-d8210bcca51a@googlegroups.com> Date: Tue, 24 Mar 2015 13:23:46 -0500 Subject: Re: Regex Python Help From: Skip Montanaro To: gdotoli@gmail.com Cc: Python Content-Type: multipart/alternative; boundary=001a113cca3e27ee3b05120ce2aa X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1427221435 news.xs4all.nl 2973 [2001:888:2000:d::a6]:55423 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87890 --001a113cca3e27ee3b05120ce2aa Content-Type: text/plain; charset=UTF-8 On Tue, Mar 24, 2015 at 1:13 PM, wrote: > SyntaxError: Missing parentheses in call to 'print' It appears you are attempting to use a Python 2.x print statement with Python 3.x Try changing the last line to print(line.rstrip()) Skip --001a113cca3e27ee3b05120ce2aa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Tue, Mar 24, 2015 at 1:13 PM, <gdotoli@gmail.com> wrote:=
SyntaxError: Missing parentheses in call= to 'print'

It appears you are attempting to = use a Python 2.x print statement with Python 3.x Try changing the last line= to

pr= int(line.rstrip())

Skip

--001a113cca3e27ee3b05120ce2aa--