Please enable JavaScript to use CodeHS

CodeHS Glossary


String Slicing Python

Accessing specific chunks of a string. ``` greeting = "hello world" print greeting[0:5] #prints "hello" ```