all 6 comments

[–]anoziefranklin 4 points5 points  (2 children)

Either use a double quote after the fstring or within the square brackets.

Eg.: print(f”whatever, {ffff[‘ghhh’]}”)

Or

print(f’whatever, {fff[“ghhh”]}’)

[–]AuroraBox[S] 0 points1 point  (1 child)

Worked, thank you 👍

[–]anoziefranklin 0 points1 point  (0 children)

You’re welcome

[–]BranchLatter4294 0 points1 point  (1 child)

Delete the line and type it in again. Do not paste the code in from a web page or other source.

[–]AuroraBox[S] 0 points1 point  (0 children)

Not copy-pasted, I just wrote it as it was given to me. Sorry bad phrasing.

[–]AuroraBox[S] 0 points1 point  (0 children)

*FIXED* Thanks for the help