Why f### ? and not just """?

Is there a reason to use f"“’ ? instead of just “”” ?

text = f"“”
Got this for my daughter for her birthday cuz she keeps taking
mine from my room. Yes, adults also like pandas too. She takes
it everywhere with her, and it’s super soft and cute. One of the
ears is a bit lower than the other, and I don’t think that was
designed to be asymmetrical. It’s a bit small for what I paid for it
though. I think there might be other options that are bigger for
the same price. It arrived a day earlier than expected, so I got
to play with it myself before I gave it to my daughter.
“”"
prompt = **f"**proofread and correct this review: {text}"
response = get_completion(prompt)
print(response)

You’ll get more useful replies if you post in a forum area that’s appropriate for your topic.
You posted in “General Discusssions”.
You can move your thread to a different area by using the “pencil” icon in the thread title.

Hello @shkshk,

Welcome to our community!

You need to google “Python F String” for more explanations and examples of it.

Cheers,
Raymond

1 Like

Hi @shkshk

Welcome to the community.

This is a Python feature called F-string. It provide a simple way to concatenate strings (character chains, text, words, etc.) in conjunction with numerical values (integer, floating points, etc.) simultaneously.

Best regards