How to call a list in order to compare elements [closed]

I am unable to call the list as I receive a type error, how can I fix this?

amountcorrect=0
questions = [
    "What is the capital of Chile?",
    "Alberta is a province of which country?",
    "How many countries still have the shilling as currency?",
    "What is the largest country in the world?",
    "What did the Romans call Scotland?",
    "Which English city was once known as Duroliponte?"]
answers = ['Santiago', "Canada", "Four", "Russia", "Caledonia", "Cambridge"]
if user_choice1 == 1:
    for i in range(len(questions)):
        asked = input(questions[len(questions)-1]
        if asked == (answer(len(answers)-1)):
            print("Correct")
            amountcorrect+=1
        if asked != (answer(len(answers)-1)):
            print("Incorrect")


from Recent Questions - Stack Overflow https://ift.tt/3gNVQtY
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations