how to print one number after decimal number in python 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