Skip to content

Commit dc7b4d3

Browse files
Update data_types.py
1 parent 1d9663c commit dc7b4d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basics/data_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
a = ["python", 'ubuntu', 'bios']
139139
print("Getting element from the list")
140140
print(a[0]) # This will get the first index in the list
141-
print(a[2]) # This will grab the second index in the list
141+
print(a[2]) # This will grab the third index in the list
142142

143143
print("Accessing using negative indexing")
144144
print(a[-1]) # using -1 will grab the last index in the list

0 commit comments

Comments
 (0)