Following uses f-string and requires python 3.6 or newer.
number on same line as lyric:
number on same line as lyric:
lyrics = ["Today I don't feel like doing anything", "I just wanna lay in my bed", "Don't feel like picking up my phone", "So leave a message at the tone"] for n, line in enumerate(lyrics): print(f'{n}: {line}')output:
Output:0: Today I don't feel like doing anything
1: I just wanna lay in my bed
2: Don't feel like picking up my phone
3: So leave a message at the tone
On separate lines:lyrics = ["Today I don't feel like doing anything", "I just wanna lay in my bed", "Don't feel like picking up my phone", "So leave a message at the tone"] for n, line in enumerate(lyrics): print(f'{n}:\n{line}')output:
Output:0:
Today I don't feel like doing anything
1:
I just wanna lay in my bed
2:
Don't feel like picking up my phone
3:
So leave a message at the tone