Question
What will be generated by the following Python code?
country=["Pakistan", "Iran", "China"]
country[2]= "Turkey"
country.append("Oman")
print(country)
What will be generated by the following Python code?
country=["Pakistan", "Iran", "China"]
country[2]= "Turkey"
country.append("Oman")
print(country)
Sign in to write or photograph your own answer before checking the model answer. It is saved privately to your account and free to do.
Flashcards, MCQs and other questions linked to this one appear here as they are added.
Topics and outcomes this question is testing.