Nov-18-2019, 08:28 PM
Nov-18-2019, 08:31 PM
left-hand
the right-hand
to be more clear
will print 1
[0]
is a list with one element - 0.the right-hand
[0]
is indexing - you access the 0-indexed element, which is 0to be more clear
print([1][0])
will print 1