118k views
4 votes
You have previously used slicing with strings.

What is the output?

str = 'abcdef'
print(str[2:5])


cde

bcde

cdef

bcd

User Vyke
by
3.7k points

2 Answers

5 votes

Answer:

cde

Step-by-step explanation:

User Michal Rosenbaum
by
2.8k points
4 votes

Answer:

cde

Step-by-step explanation:

just took the test :)

User Murrayju
by
3.7k points