Q:

Python print statement shows unwanted characters

I am new to python and am having difficulties with an assignment for a class.
Here's my code:
print ('Plants for each semicircle garden: ',round(semiPlants,0))

Here's what gets printed:
('Plants for each semicircle garden:', 50.0)

As you see I am getting the parenthesis and apostrophes, which I do not want shown.

A:

You're clearly using python2.x when you think you're using python3.x.  In python 2.x, the stuff in the parenthesis is being interpreted as a tuple.
One fix is to use string formatting to do this:
print ( 'Plants for each semicircle garden: {0}'.format(round(semiPlants,0)))

which will work with python2.6 and onward (parenthesis around a single argument aren't interpreted as a tuple.  To get a 1-tuple, you need to do (some_object,))

