In <[email protected]> Sam
<[email protected]> 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 words, it is used like this:
name = "Bob"
print "Hello ", name
Because there are parentheses around the text to be printed, your version
of python is interpreting it as a tuple. Remove the parentheses and you
should be ok.
--
John Gordon A is for Amy, who fell down the stairs
[email protected] B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
https://mail.python.org/mailman/listinfo/python-list