# Chapter 13 example: turning a string into a number.

text = "42"
n = int(text)
print(n + 1)               # 43

print(float("3.14"))       # 3.14
print(int("hello"))        # raises ValueError (no equivalent of nil; use try/except to handle)
