In <05bbf1a3-6480-48ee-8984-2482b90c7...@googlegroups.com> Sam 
<anasdah...@gmail.com> 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
gor...@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to