(May-19-2018, 08:17 AM)wavic Wrote: You have 'country' and 'capital'. Adding each of them to a corresponding list is a routine.
Hi wavic!
Sorry I dont understand the "Adding each of them to a corresponding list is a routine."
Which means It cant store the whole list at once? But only store line by line?
(May-18-2018, 04:56 PM)wavic Wrote: The 'country' is set to Russia on line 9 during the last loop. You have to traverse trough data again and to check if the input is equal to the str.startswith from each element. I would use a dictionary but I don't know what is the exact assignment or whether you had the dictionaries at school.
May I know how to traverse the data again?
Is there any code for it?
Sorry for not understanding well.