-
Notifications
You must be signed in to change notification settings - Fork 0
/
26_Playlist.py
37 lines (25 loc) · 952 Bytes
/
26_Playlist.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 26 - Mixtape
# Codédex
####################
# snowfall = [0.3, 0.0, 0.0, 1.2, 3.9, 2.2, 0.8]
# for i in snowfall:
# print(i)
# The i is a variable which represents an item inside the list, each time the loop iterates. This is saying for every item in the snowfall list, print out the item.
####################
# snowfall = [0.3, 0.0, 0.0, 1.2, 3.9, 2.2, 0.8]
# for i in range(len(snowfall)):
# print(snowfall[i])
# The i here is an index. This is saying for every index from 0 to the length of snowfall minus 1 (7 - 1 = 6), print out the item at that index.
# 💿 Theme: Rap Songs
playlist = [
'1. Future/Metro Booming feat. Kendrick Lamar - Like That',
'2. Drake feat. J Cole - First Person Shooter',
'3. Kendrick Lamar - Mr. Morale',
'4. Travis Scott - My Eyes',
"5. A$AP Rocky - Fashion Killa",
'6. Kanye feat. Pusha T - Runaway'
]
# for i in playlist:
# print(i)
for i in range(len(playlist)):
print(playlist[i])