Solved

What Statement Should You Use to Print the Value of Total

Question 34

Multiple Choice

What statement should you use to print the value of total with a precision of 5 digits?


A) print("The total is %5." % total)
B) print("The total is %0.5d" % total)
C) print("The total is %f" % float(total, 5) )
D) print("The total is %0.5f" % total)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions