Hey people, I've got a file, looks like this:
england
america
spain
brazil
germany
australia
now, I need to read it line by line:
country = open('languages/country.lang', 'r')
and give a value to it, like:
A1 = country.readline()
and then A2 for the next country and so on. So I was thinking , how can I possibly do this, without needing to have a big list like:
A1 = country.readline()
A2 = country.readline()
A3 = country.readline()
A4 = country.readline()
A5 = country.readline()
A6 = country.readline()
I could use "for" or "while", i guess, but I'm not sure how. Any ideas? Thanks