I am on exercise 13 on “Strings & Console Output” in Python 2.
Code :
#Turn 3.14 into a string on line 3!
print "The value of pi is around " + str(3.14)
When I test their example of a string with a number, I wrote it as:
print “I have 2 coconuts!”
They want it written as:
print “I have " +str(2) + " coconuts!”
What’s the difference if they both print the same line out in the console?