python add 1dp code example
Example: print upto 1 decimal place python
print("{:.1f}".format(number)) # Python3
print "%.1f" % number # Python2
print("{:.1f}".format(number)) # Python3
print "%.1f" % number # Python2