Changes

Jump to: navigation, search

OPS435 Python Lab 4

6 bytes added, 08:51, 21 June 2017
PART 1 - Strings and Substrings
print('abc'*2)
print(course_code*5)
</source>When using the '''print() ''' function, you can display special characters. One such special character is the is the newline character (denoted by the symbol: '''\n'''). This allows you to separate content between new lines or empty lines.<br><br>
:#To demonstrate, issue the following:<source>
print('Line 1\nLine 2\nLine 3\n')
13,420
edits

Navigation menu