https://www.codecademy.com/courses/python-beginner-en-pwmb1/1/3?curriculum_id=4f89dab3d788890003000096#


#1

animals = "catdogfrog"
cat = animals[:3] # The first three characters of animals
dog = [4:6] # The fourth through sixth characters
frog = [10] # From the seventh character to the end


#2

When you use the var = animals[start:stop:step] syntax, the start is not inclusive.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.