Hi.This is my code that I have.
# Turn 3.14 into a string on line 3! print "The value of pi is around " + str(2) + "3.14"
The error pops out as:
Oops, try again. It looks like you printed "The value of pi is around 23.14" instead of "The value of pi is around 3.14".
I am required to:
1. Run the code as-is. You get an error!
2. Use str() to turn 3.14 into a string. Then run the code again.
This is in the hint section:
The code to turn the number 2 into a string is str(2).
Can you convert the number 3.14 into a string?
Please help quickly. I am at a competition with my class to see who can finish the course first. Thanks in advance.