0
Python shortcut exercise question
c = [$, €, £, ¥] Use negative indexing to output the 4th element in the list. print(c[___]) What should be the value in the blanks -4 was wrong.....
1 Réponse
+ 1
When using negative indexing, the selection starts from the end of the list, going left as you decrease the value more. The 4th item(which is the last item) has an index of -1, not -4.