reprahkcin
2/27/2019 - 10:07 AM

Formatted Strings

A demonstration of an alternative to concatonation. The curly braces can accept any valid expression.

first = "Nick"
last = "Harper"
age = 2019 - 1981
full = f"{first} {last} will turn {age} years old this year."
print(full)