Solved

Which of the Following Statements A), B) or C) Is

Question 17

Multiple Choice

Which of the following statements a) , b) or c) is false?


A) A space before the presentation type in an f-string indicates that positive numbers should show a space character in the sign position. This is useful for aligning positive and negative values for display purposes, as in: In [1]: print(f'{27: d}\n{-27: d}')
27
-27
B) If a field width is specified with a space flag, the space should appear before the field width.
C) You can format numbers with thousands separators by using a comma (,) , as in the following f-strings: f'{,12345678:d}'
F'{,123456.78:.2f}'
D) All of the above statements are true.

Correct Answer:

verifed

Verified

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

Related Questions