I can't understand the instructions! 13/16


#1

It says, "Oops, try again. Gadzooks! A string and a float cannot be concatenated. Here's what Python says is the error: cannot concatenate 'str' and 'float' object"
and this is what I did (with misunderstand)

print "The value of pi is around " + 3.14 + str(2)
print str(2) + 3.14

What did I do wrong here? :o


#2

They want you to do

print "The value of pi is around "+ str(3.14)

because 3.14 is not a string ,you have to convert it to a string with str(arg) to concatenate(add) to a string


#3

After typing: print "The value of pi is around "+ str(3.14)
That info was displayed: "Traceback (most recent call last):
File "python", line 3, in
TypeError: cannot concatenate 'str' and 'float' objects"

what is wrong?