x = ['mix', 'xyz', 'apple', 'xanadu', 'rovio']
y = []
z = []
for i in x:
    if i[0] == "x":
        y.append(i)
    else:
        z.append(i)
    if i == x[-1]:
        y.extend(z)
    else:
        continue
    print(y)

99460050682ea9e0c7c51f541159827e0a37c5ae
<mask token>

<mask token>
for i in x:
    if i[0] == 'x':
        y.append(i)
    else:
        z.append(i)
    if i == x[-1]:
        y.extend(z)
    else:
        continue
    print(y)

x = ['mix', 'xyz', 'apple', 'xanadu', 'rovio']
y = []
z = []
for i in x:
    if i[0] == 'x':
        y.append(i)
    else:
        z.append(i)
    if i == x[-1]:
        y.extend(z)
    else:
        continue
    print(y)

x = ['mix', 'xyz', 'apple', 'xanadu', 'rovio']
y = []
z = []
for i in x:
    if i[0] == "x":
        y.append(i)
    else:
        z.append(i)
    if i == x[-1]:
        y.extend(z)
    else:
        continue
    print(y)
