python for each value in list code example Example: python foreach in a list thislist = ["apple", "banana", "cherry"] for x in thislist: print(x)