May-19-2018, 08:30 AM
>>> l = list('some data') >>> for element in l: ... print(element) ... s o m e d a t a >>> for element in l: ... print(element*4) ... ssss oooo mmmm eeee dddd aaaa tttt aaaaHere I loop again through the list to do something else.
As I understand the assignment you have to have one list for the countries and one to store the capitals. But this is the mine interpretation.
Quote:... to read the same into lists country and capital respectively