python get only first decimal number 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