You can use a for loop to traverse all elements in a list code example Example: iterate through a list my_list = ["Hello", "World"] for i in my_list: print(i)