79.4k views
0 votes
Assign sub_lyric by slicing rhyme_lyric from start_index to end_index which are given as inputs.

Sample output with inputs: 4 7
cow

User Brandy
by
4.8k points

2 Answers

3 votes

Answer:

start_index:end_index

Step-by-step explanation:

put this where it says '''Your solution'''

User Xuanyue
by
4.9k points
3 votes

In python:

sub_lyric = rhyme_lyric[start_index:end_index]

Just add this line of code wherever you need it. I hope this helps!

User Awl
by
6.0k points