Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54515
| 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 | <elmiliox@gmail.com> |
| 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 <emiliano.firmino@gmail.com> |
| 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 <anasdahany@gmail.com> |
| 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 <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.203.1379715584.18130.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Remove both brackets in last line, You are creating a tuple in last
statement not making a function call.
2013/9/20 Sam <anasdahany@gmail.com>
> 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 want
> to know why it prints this way. thank you
>
>
> car=int(input("Lamborghini tune-up:"))
>
> rent=int(input('\nManhatan apartment: '))
>
> gifts=int(input('\nRandom Gifts: '))
>
> total=car+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)
>
>
>
> ===> 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ário | Engenharia da Computação | UEA
emiliano.firmino@gmail.com | (92) 9196-3922
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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