Question 1 of 5
What does format(value, spec) do?
format() returns a formatted representation.
format() asks the value for its formatted representation using the supplied format specification.
Review this lesson
Check your understanding of format(), width, alignment, fill, precision, and conversion versus formatting.
Knowledge check
Check your understanding of format(), width, alignment, fill, precision, and conversion versus formatting.
You can retake this quiz whenever you like.
Question 1 of 5
Question 2 of 5
Question 3 of 5
Question 4 of 5
Question 5 of 5