Print statement not printing as it suppose to

Emiliano Carlos de Moraes Firmino emiliano.firmino at gmail.com
Fri Sep 20 18:11:28 EDT 2013


Remove both brackets in last line, You are creating a tuple in last
statement not making a function call.


2013/9/20 Sam <anasdahany at 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 at gmail.com | (92) 9196-3922
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130920/964ecb24/attachment.html>


More information about the Python-list mailing list