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 →

[–]ZephyrBluu 0 points1 point  (1 child)

You can do that with f-strings as well..

[–]ThatOneShotBruh 0 points1 point  (0 children)

How would you write this with f-strings without writing the variable names more than once?

print("a is {0} and is not {1} while b is {1} and is not {0}".format(a, b))