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


Groups > comp.lang.python > #54531

Re: Print statement not printing as it suppose to

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'tutorial': 0.03; 'class,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '2.7': 0.14; '3.3,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Print': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'pointed': 0.19; 'print': 0.22; 'install': 0.23; 'header:User- Agent:1': 0.23; '2.x': 0.24; 'header:X-Complaints-To:1': 0.27; 'statement': 0.30; 'probably': 0.32; 'supposed': 0.32; 'problem': 0.35; 'but': 0.35; 'version': 0.36; 'charset:us-ascii': 0.36; "i'll": 0.36; 'possible': 0.36; 'should': 0.36; 'to:addr:python- list': 0.38; 'use.': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; "you're": 0.61; "you've": 0.63; 'total': 0.65; 'sam': 0.68; 'subject:printing': 0.84; 'from.': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dave Angel <davea@davea.name>
Subject Re: Print statement not printing as it suppose to
Date Sat, 21 Sep 2013 04:40:04 +0000 (UTC)
References <05bbf1a3-6480-48ee-8984-2482b90c79c0@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 174.32.174.35
User-Agent XPN/1.2.6 (Street Spirit ; Linux)
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.216.1379738432.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1379738432 news.xs4all.nl 15940 [2001:888:2000:d::a6]:39448
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:54531

Show key headers only | View raw


On 20/9/2013 17:57, Sam wrote:

>
> print("\nThe total amount required is ", total )
>
>
> ('\nThe total amount required is ', 3534)
>
> ===> the problem is obviously on the last print statement that is supposed to print the outut

Others have pointed out the version discrepancy.  But I'll also ask what
you're learning Python from.  If you've got a tutorial or book that uses
Python 3.x, then forget 2.x and install 3.3

If you're learning it in a class, then the instructor should already
have told you what version to use.

It is possible to install both 2.7 and 3.3, but you probably don't need
the confusion while you're learning.

-- 
DaveA

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


Thread

Print statement not printing as it suppose to Sam <anasdahany@gmail.com> - 2013-09-20 14:57 -0700
  Re: Print statement not printing as it suppose to Tim Delaney <timothy.c.delaney@gmail.com> - 2013-09-21 08:11 +1000
  Re: Print statement not printing as it suppose to Emiliano Carlos de Moraes Firmino <emiliano.firmino@gmail.com> - 2013-09-20 18:11 -0400
  Re: Print statement not printing as it suppose to John Gordon <gordon@panix.com> - 2013-09-20 22:40 +0000
  Re: Print statement not printing as it suppose to Chris Angelico <rosuav@gmail.com> - 2013-09-21 12:50 +1000
  Re: Print statement not printing as it suppose to Dave Angel <davea@davea.name> - 2013-09-21 04:40 +0000

csiph-web