Aug-19-2018, 11:48 AM
I didn't run your code, but just from the code highlighting it is visible that you missed a first double quote (") in "European" (continents list).
Second and third problems are both indentation related. with open() block of code is not inside Main() function, which I believe is what you wanted to do. So now Main() function just assigns the list of continents to continents variable, and that's it.
Then the f.write is not part of the for loop, because it is not indented inside it. Thus f.write runs only once, and it doesn't know what continent is.
Second and third problems are both indentation related. with open() block of code is not inside Main() function, which I believe is what you wanted to do. So now Main() function just assigns the list of continents to continents variable, and that's it.
Then the f.write is not part of the for loop, because it is not indented inside it. Thus f.write runs only once, and it doesn't know what continent is.