Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 4

20 bytes added, 12:52, 20 June 2017
PART 1 - Strings and Substrings
print('Line 1\nLine 2\nLine 3\n')
</source>
:#By using both string repitition on repetition and a special newline character, multiple lines can be created at once. Issue the following:<source>
print('Line 1' + '\n'*4 + 'Line 5\nLine 6')
</source>
13,420
edits