Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27830

RE: help with simple print statement!

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ramit.prasad@jpmorgan.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'completeness': 0.07; 'restarting': 0.07; 'subject:help': 0.07; 'python': 0.09; 'here?': 0.09; 'received:155': 0.09; 'portion': 0.13; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'received:155.180': 0.16; 'received:159.53': 0.16; 'received:169.70': 0.16; 'received:169.70.184': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:svr.bankone.net': 0.16; 'reproduce': 0.16; 'securities,': 0.16; 'subject:simple': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'usenet': 0.16; 'to:name:python- list@python.org': 0.20; 'bruce': 0.23; 'class.': 0.23; 'statement': 0.23; 'received:169.254': 0.24; 'idea': 0.24; 'command': 0.24; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'plain': 0.27; 'accuracy': 0.27; 'instead.': 0.27; "doesn't": 0.28; 'run': 0.28; 'post': 0.28; 'received:169': 0.29; 'header:Received:8': 0.30; 'code': 0.31; 'problem.': 0.32; 'print': 0.32; 'function.': 0.33; 'wishes,': 0.33; 'to:addr :python-list': 0.33; 'text': 0.34; 'list': 0.35; 'subject:with': 0.36; 'bad': 0.37; 'does': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'your': 0.60; 'easy': 0.60; 'information,': 0.63; 'url:email': 0.63; 'legal': 0.65; 'subject': 0.66; 'purchase': 0.67; 'receive': 0.71; 'sale': 0.76; 'received:169.254.8': 0.84; '\xa0also,': 0.84
X-DKIM OpenDKIM Filter v2.1.3 sf2.jpmchase.com q7OJxZ3L011935
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1345838375; bh=CaOSw+tlxnoUBgPA25ZrXX4v2bOwr0bl2hClh+FcaTs=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=rSI4SXnmTPjixf7ag8emqzR9pDLF9wdgUxOqfu3iMHezBkDCl9pawvFpMBKnhks78 XhpiIw83OoTZGU4UdsLyAVIz2pXZOLBONotUnFeQhQjfvtPBFIevLURvduahVOu5oe PW4dSpoR5frJt8hXLAMaW74PvwcKln8sZPnLVuZ8=
From "Prasad, Ramit" <ramit.prasad@jpmorgan.com>
To "python-list@python.org" <python-list@python.org>
Subject RE: help with simple print statement!
Thread-Topic help with simple print statement!
Thread-Index AQHNgjEqNCXrN7vh6EG0H/Ht3fTKRpdpX1uA
Date Fri, 24 Aug 2012 19:59:12 +0000
References <CAFg9KJs4hPJ7zjydY45U8S6b5ndo2ox4qtYN6JWuwytt63z3hA@mail.gmail.com>
In-Reply-To <CAFg9KJs4hPJ7zjydY45U8S6b5ndo2ox4qtYN6JWuwytt63z3hA@mail.gmail.com>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [10.67.79.47]
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-DLP-FWD Yes
Content-Type text/plain; charset="iso-8859-1"
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3774.1345838384.4697.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1345838384 news.xs4all.nl 6949 [2001:888:2000:d::a6]:51905
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:27830

Show key headers only | View raw


Willem Krayenhoff
Any idea why print isn't working here?  

I tried restarting my Command prompt.  Also, print doesn't work inside a class.


-- 
Best Wishes,

     Bruce
     C: 604-441-5791
     My Availability 



Just as a note, this is a usenet group that can be accessed via email; a good portion of the people on the list does not receive attachments and images. HTML is also a bad format as it mangles code so please post in plain text and copy/paste from the command line instead of using screenshots.  It will be easy for us to run your code if necessary to reproduce the results.

Now on to your problem. You are using Python 3 where print was turned from a statement into a function. You need to use the following instead. 

print('34ki') 
print(6)
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

RE: help with simple print statement! "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-08-24 19:59 +0000
  Re: help with simple print statement! Hans Mulder <hansmu@xs4all.nl> - 2012-08-26 11:01 +0200

csiph-web