The quotes need to be inserted explicitly in the string something like this
# Case-1
print(f"""{first_name.title()} {last_name.title()} once said, "{message}" """)
The outcome is
Albert Einstein once said, "A person who never made a mistake never tried anything new."
Since the quote appears after the .
, hence the quotes should go into the message string
# Case -2
first_name = "albert"
last_name = "einstein"
message = '"A person who never made a mistake never tried anything new".'
print(f"{first_name.title()} {last_name.title()} once said, {message} ")
Notice that in first example, I have used tripple quotes """
to enclose the string and in second case, its double quotes "
inside single '
. Many such combinations work in python. Otherwise writing the message like below also works, but requires escaping the double quotes
message = "\"A person who never made a mistake never tried anything new\"."
Also have a look at these docs
https://docs.python.org/3/tutorial/introduction.html#strings
https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals