Wednesday, June 4, 2014

Day 60

Explored Python at CodeCademy. Worked on Python tutorial 13 of 16, Strings & Console Output, Explicit String Conversion. Learned how to combine a string with something that isn't a string.

The code used:
# Turn 3.14 into a string
print "The value of pi is around " + str(3.14)

The interaction looked like this:
The value of pi is around 3.14

No comments:

Post a Comment