13,420
edits
Changes
→PART 1 - Strings and Substrings
course_name[-2]
</source>
:# This allows string Issue the following to return practice some of the substrings like belowskills that you have learned in this section:<source>
course_name = 'Open System Automation'
course_name[-10:] # Return the last ten characters
</source>
:# The real power found in substrings goes beyond just manually writing index values and getting back words. The next part of this investigation will cover how to search through a string for a specific word, letter, number, and return the index to that search result.
'''Create a Python Script Demostrating Substrings'''
:'''Perform the Following Instructions'''