6 salicing list and sting


#1

i am stuck with this here is my cod help.....

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

i don't what to do


#2

test it:

animals = "cat dog frog"


#3

thank you but it set come up with an erro miss


#4

if you get another error, please enter link of course and error message in here


#5

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