The statement print(format(0.8, '.2%')) will display the value 0.8 as a percentage with a precision of 2 decimal places, resulting in the output '80.00%'.
It's D.
Proof: online-python.com:
print(format(0.8, '.0%')) = 80%
In fact, similar to what "due" stated, it the numbers on the right dictate the output. So, if you put print(format(0.8, '.5%')), that is still 80.00000% or 80% of course.
If you only want the percentage to be displayed as '8%' without any decimals, you would need to use a different formatting specification, such as '0%'. With this specification, 0.8 would be displayed as '8%'.
This section is not available anymore. Please use the main Exam Page.350-401 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
due
Highly Voted 1 year, 8 months agoNetworkJanitor
Most Recent 5 months agoNetworkJanitor
5 months agoagabeen
6 months, 3 weeks ago[Removed]
10 months, 2 weeks ago[Removed]
11 months agoslacker_at_work
1 year, 1 month agoColmenarez
1 year, 8 months agoalex711
1 year, 8 months ago