Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to print answer 2 decimal places in python 3

print("{0:.2f}".format(sum(student_marks[query_name])/3))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #answer #decimal #places #python
ADD COMMENT
Topic
Name
3+2 =