I want to print the following using an f string literal. It will be running wihtin a function and apples will be one of the arguments. I want it to have the square brackets included.
"I like [apples] because they are green"
I have tried the following code:
"I like {} because they are green".format("apples")
The code above prints:
I like apples because they are green
How do I insert the square brackets [ ] or another special character such as < > into the f string literal?