Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'python,': 0.02; 'subject:not': 0.03; 'output': 0.05; 'cc:addr:python-list': 0.11; 'random': 0.14; "'))": 0.16; '2300': 0.16; 'brackets': 0.16; 'engenharia': 0.16; 'subject:Print': 0.16; 'tuple': 0.16; 'weird.': 0.16; 'sender:addr:gmail.com': 0.17; 'obviously': 0.18; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'creating': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'prints': 0.31; 'skip:c 30': 0.32; 'supposed': 0.32; 'url:python': 0.33; 'call.': 0.33; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'starting': 0.37; 'thank': 0.38; 'url:mail': 0.40; 'remove': 0.60; 'skip:u 10': 0.60; 'everybody': 0.60; 'simple': 0.61; 'making': 0.63; 'email addr:gmail.com': 0.63; 'total': 0.65; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'line,': 0.68; 'sam': 0.68; 'gifts:': 0.84; 'subject:printing': 0.84; 'carlos': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=PpL2EL3aBiZSoN3X8DRVDjyMEd7r7h9yx1dKdGUHIYo=; b=Nx0r0cAoo354KcyZdwnKG6DdzYvfMWPO4CDVbjRpKnH9AsEIBlqFoQNSRlKV7KH4Mb cyl8S5hQ4axdhoebVDwEz7gD+diN/LOvgqN10kzQRlKhd/WRPow6uqqk1O3tpQHMbM7t hTltdxVz+xLn96Hl/hBIGR0QrcEnhwQWjAQ5swiLsyntPDe8y/PQVFqPELhzJhyjIyCK 2Y9blr6WRp1RxYZehS7wy5beXTJkMkeUi/lejVHPU5/3zQIbdpvb7TECvrWK/W9CGY66 iMvHpFBnn6XMiN+167e2QDnW7xoST6r02ysp5kgdBqZIXBBk2Fhg/btaV6xVKwvBvGyb j2/Q== X-Received: by 10.152.8.115 with SMTP id q19mr7953938laa.16.1379715128669; Fri, 20 Sep 2013 15:12:08 -0700 (PDT) MIME-Version: 1.0 Sender: elmiliox@gmail.com In-Reply-To: <05bbf1a3-6480-48ee-8984-2482b90c79c0@googlegroups.com> References: <05bbf1a3-6480-48ee-8984-2482b90c79c0@googlegroups.com> From: Emiliano Carlos de Moraes Firmino Date: Fri, 20 Sep 2013 18:11:28 -0400 X-Google-Sender-Auth: 9MbO1Kw2AYTnvmBeOAGHMP8NK0I Subject: Re: Print statement not printing as it suppose to To: Sam Content-Type: multipart/alternative; boundary=001a11c34f5c22bc7b04e6d7f692 Cc: python-list@python.org 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: 106 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379715584 news.xs4all.nl 15890 [2001:888:2000:d::a6]:49804 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54515 --001a11c34f5c22bc7b04e6d7f692 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Remove both brackets in last line, You are creating a tuple in last statement not making a function call. 2013/9/20 Sam > hi everybody i am just starting to learn python, i was writing a simple > i/o program but my print statement is acting weird. here is my code i wan= t > to know why it prints this way. thank you > > > car=3Dint(input("Lamborghini tune-up:")) > > rent=3Dint(input('\nManhatan apartment: ')) > > gifts=3Dint(input('\nRandom Gifts: ')) > > total=3Dcar+rent+gifts > > print("\nThe total amount required is ", total ) > > > OUTPUT > > Lamborghini tune-up:1000 > > Manhatan apartment: 2300 > > Random Gifts: 234 > ('\nThe total amount required is ', 3534) > > > > =3D=3D=3D> the problem is obviously on the last print statement that is s= upposed > to print the outut > -- > https://mail.python.org/mailman/listinfo/python-list > --=20 Emiliano Carlos de Moraes Firmino Desenvolvedor | PMT | INdT Universit=C3=A1rio | Engenharia da Computa=C3=A7=C3=A3o | UEA emiliano.firmino@gmail.com | (92) 9196-3922 --001a11c34f5c22bc7b04e6d7f692 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Remove both brackets in last line, You are creating a tupl= e in last statement not making a function call.


2013/9/20 Sam <anasdahany@g= mail.com>
hi everybody i am just starting to learn pyt= hon, i was writing a simple i/o program but my print statement is acting we= ird. here is my code i want to know why it prints this way. thank you


car=3Dint(input("Lamborghini tune-up:"))

rent=3Dint(input('\nManhatan apartment: '))

gifts=3Dint(input('\nRandom Gifts: '))

total=3Dcar+rent+gifts

print("\nThe total amount required is ", total )


OUTPUT

Lamborghini tune-up:1000

Manhatan apartment: 2300

Random Gifts: 234
('\nThe total amount required is ', 3534)



=3D=3D=3D> the problem is obviously on the last print statement that is = supposed to print the outut
--
https://mail.python.org/mailman/listinfo/python-list



--
Emiliano = Carlos de Moraes Firmino
Desenvolvedor | PMT | INdT
Universit=C3=A1ri= o | Engenharia da Computa=C3=A7=C3=A3o | UEA
emiliano.firmino@gmail.com | (92) = 9196-3922
--001a11c34f5c22bc7b04e6d7f692--