190k views
1 vote
>>> sentence = "Programming is fun!"

>>> _____

'gr'
A sentence[2:6]

B sentence[3:5]

C sentence[2:5]

D sentence[3:6]

2 Answers

2 votes

Answer:

B - sentence[3.5]

Step-by-step explanation:

just took this on edge. have a good one

User Naftis
by
6.9k points
4 votes

sentence[2:5] is the correct answer.

This means it selects all the indexes before 5 and after 2, including 2.

User Roshna Omer
by
8.2k points