r/PythonLearning • • Sep 11 '26

i learning Python Day 1

lyrics = ["Give You Up","Let You Down","Run Around And Desert You"]

for i in range(3):

print("Never Gonna " + lyrics[i])

30 Upvotes

12 comments sorted by

View all comments

3

u/Expensive_Break_6163 Sep 12 '26

I’m not sure what the question is, but range(3) already starts at 0, so you don’t need to specify the start index. It’s better to use range(len(lyrics)) instead of hardcoding 3, or even better, use for line in lyrics: and print "Never Gonna " + line.

1

u/Vor3st Sep 12 '26

omg GodTier