String Interpolation
Including variable values inside of a string is handled with string interpolation.
which will print the string I am 24 years old
. Any arbitrary expression can be contained inside of the curly braces. For expressions that are not a string by default, the __str__
method will be called on them to get the string version.