%.2f will format your number rounded to two decimal places. So if you had 1 / 3 it would come out as 0.33 instead of 0.333333
% is the placeholder for the value
.2 tells it 'two spaces after the decimal'
f tells it that the placeholder is a float
%.2f will format your number rounded to two decimal places. So if you had 1 / 3 it would come out as 0.33 instead of 0.333333
% is the placeholder for the value
.2 tells it 'two spaces after the decimal'
f tells it that the placeholder is a float