l1= []
items = input("Enter an item or press x to exit ")
while (items != 'x'):
    l1.append(items)
    items = str (input("Enter an item or press x to exit "))
print ("The shopping list" + str (l1))
5206c95f269436af51a1e9a5304eb7674ecbdd6c
<mask token>

<mask token>
while items != 'x':
    l1.append(items)
    items = str(input('Enter an item or press x to exit '))
print('The shopping list' + str(l1))

l1 = []
items = input('Enter an item or press x to exit ')
while items != 'x':
    l1.append(items)
    items = str(input('Enter an item or press x to exit '))
print('The shopping list' + str(l1))

l1= []
items = input("Enter an item or press x to exit ")
while (items != 'x'):
    l1.append(items)
    items = str (input("Enter an item or press x to exit "))
print ("The shopping list" + str (l1))