Changes

Jump to: navigation, search

OPS435 Python Lab 4

11 bytes removed, 10:24, 23 June 2017
PART 3 - String Formatting Advanced Features
print('{0:+f}\n{1:+f}'.format(number1, number2)) # The space before the f lines up positive and negative numbers
</source>
:#Combining fixed point positions and sign together look like can be performed by issuing the following by issuing:<source>
print('{0:+.2f}'.format(number1))
print('{0:+.2f}'.format(number2))
13,420
edits

Navigation menu