Changes

Jump to: navigation, search

OPS435 Python Lab 4

7 bytes removed, 19:12, 21 June 2017
PART 2 - String Formatting
:#To demonstrate, issue the following:<source>
print('{} {} {}'.format('a', 'b', 'c'))
</source>However, using this method while quick, easy, and clean has a issue. If more curly braces '''{}''' are in the string than in the format() arguments, it will create an '''a error'''.<br><br>
:#To demonstrate by creating too many braces, issue the following:<source>
print('{} {} {} {}'.format('a', 'b', 'c'))
13,420
edits

Navigation menu