194k views
2 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

1 Answer

7 votes

sub_lyric = rhyme_lyric[start_index:end_index]

User Anataliocs
by
6.6k points