67.1k views
1 vote
True/False: Python formats all floating-point numbers to two decimal places when outputting using the print statement.

User DesirePRG
by
7.5k points

1 Answer

0 votes

Answer:

False

Step-by-step explanation:

The print statement in Python does not automatically format floating-point numbers to two decimal places. If you wish to do so, you will need to use the string formatting operator (%).

User Rgcb
by
7.5k points