Changes

Jump to: navigation, search

OPS435 Python Lab 4

108 bytes added, 12:49, 20 June 2017
PART 1 - Strings and Substrings
print('abc'*2)
print(course_code*5)
</source>:#This When using the print() function, you can be especiallt usefukl when dealing with display special characters . One such special character is the is the newline character (denoted by the symbol: '''\n''' is the newline character). This allows you to separate content between new lines or empty lines. Using this in a string will end <br><br>:#To demonstrate, issue the line and print on the next linefollowing:<source>
print('Line 1\nLine 2\nLine 3\n')
</source>
13,420
edits

Navigation menu