mynugget99
New member
- Joined
- Oct 14, 2025
- Messages
- 1
- Programming Experience
- Beginner
Ok lets say I have a list in a list. Say list name is players and each player contains three more items. One for id, playername, and color.
players[0][0] = 1001
players[0][1] = Bob
players[0][2] = red
players[1][0] = 1002
players[1][1] = Joe
players[1][2] = yellow
players[2][0] = 1003
players[2][1] = Tom
players[2][2] = blue
players[3][0] = 1004
players[3][1] = Bill
players[3][2] = blue
Lets say I know the players id of 1003. How do I get the first list index of 1003 which would be 2?
players[0][0] = 1001
players[0][1] = Bob
players[0][2] = red
players[1][0] = 1002
players[1][1] = Joe
players[1][2] = yellow
players[2][0] = 1003
players[2][1] = Tom
players[2][2] = blue
players[3][0] = 1004
players[3][1] = Bill
players[3][2] = blue
Lets say I know the players id of 1003. How do I get the first list index of 1003 which would be 2?