Using %-formatting, I can round the number of decimal cases in a string:
pi = 3.14159265
print('pi = %0.2f' %pi)
And in output(in terminal) this would give me:
pi = 3.14
Can I use f-strings do this task? This feature has been added in Python 3.6