Formatting a variable that has an integer value

1
2
3
4
score = 98
message = "You achieved a score of [---]." % score

print message

Assuming the above code is python, what would you use to replace [---] so that the output is:

1
You achieved a score of 98.

×

Problem Loading...

Note Loading...

Set Loading...