I have a list
list = [[\'vegas\',\'London\'],[\'US\',\'UK\']]
How to access each element of this list?
I'd start by not calling it list, since that's the name of the constructor for Python's built in list type.
list
But once you've renamed it to cities or something, you'd do:
cities
print(cities[0][0], cities[1][0]) print(cities[0][1], cities[1][1])