DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+6 =
Submit