+ 1
How do i add list of 100 cricket player name and assign their country name to them.please help with the code
How do i add list of 100 cricket player name and assign their country name to them.please help with the code
10 Antworten
+ 2
Sounds like you need to use a dictionary for this problem
+ 2
That is one downside. You have to use unique values for your primary key
I suggest an ID number or player number (on jersey) as key
+ 2
{Jersey_Number:[name, country]}
Use a list *inside* a dictionary! (triumphant music)
+ 2
No problem. Bear in mind I do not know swift, Im using general programming knowledge. I can't help you with syntax😅
+ 2
Sure not a problem some help is great hlp
+ 1
Can you help me with a line to show how to. I am learning swift as of now
+ 1
If i use country with the player name will it not be an issue if i have 5 players from canada in the list???
+ 1
Yes is it so how can i add player and country together
+ 1
I need that too as per client requirement
+ 1
Thank you for your help. I would need more of your help in coming week