Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print 2 decimal places python

print("{0:.2f}".format(sum(query_marks)/len(query_marks)))
Source by pythonguides.com #
 
PREVIOUS NEXT
Tagged: #print #decimal #places #python
ADD COMMENT
Topic
Name
1+2 =