4 ms·
scores[0.5] = 4 print(scores) //[3, 2, 4, 5]! should be [3, 4, 2, 5] imo, between 0 and 1
by 11235813213455 3y ago
scores[0.5] = 4
print(scores) //[3, 2, 4, 5]!
should be [3, 4, 2, 5] imo, between 0 and 1
- Alifatisk 3y agoNo arrays starts from -1 in this case.
- throwawaymaths 3y agoYou missed that DB is -1 indexed