how to make two digit after decimal in python code example Example: how print 2 decimal in python for i in range(10): j=i*0.1 print('%0.2f' %j)