Pring
Title
Question
<span style="color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">print('The value of x is %3.2f' %x)</span>
<span style="color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">
</span>
</span>
<span style="color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">What does 3 represent</span>
Python-3.4.3 Input-output 03-04 min 10-20 sec
Answers:
The 3 represents the length of the complete formatted string, in case the length of the value of x is less than 3 it will be padded with empty spaces.
Login to add comment