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
On Sat, Sep 21, 2013 at 7:57 AM, Sam wrote:
> car=int(input("Lamborghini tune-up:"))
> print("\nThe total amount required is ", total )
> OUTPUT
> ('\nThe total amount required is ', 3534)
As others have said, this output indicates that you're running under a
Python 2.x interpreter. I strongly re
In <05bbf1a3-6480-48ee-8984-2482b90c7...@googlegroups.com> Sam
writes:
> print("\nThe total amount required is ", total )
> OUTPUT
> ('\nThe total amount required is ', 3534)
In older versions of python (like the one you are using), 'print' is a
statement instead of a function.
In other word
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 want
> to know why it prints
On 21 September 2013 07:57, Sam wrote:
> 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
>
> print("\nThe total amount required is ", total )
>
>
> OUTP