python format strings methods code example Example: python format strings name = "Rick" age = 42 print(f"My name is {name} and I am {age} years old")