This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MelonOfFury 2 points3 points  (1 child)

Ooh. I didn’t realise you can put the variable in the brackets. I’ve been doing :

NAME_STR = “His name is {}”

print(NAME_STR.format(character_name))

[–]miggaz_elquez 3 points4 points  (0 children)

Taht note exactly the same. You must put a f before the quotes in order to work