Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list1 = [ ['3', 'Americano', '7', '14000'], ['4', 'Smoothie_queen', '4', '12000'], ['5', 'Americano', '2', '4000'], ['6', 'Americano', '17', '34000'], ['7', 'Cafe_mocha', '4', '11200'], ['8', 'Cafe_latte', '11', '27500'], ['9', 'Americano', '17', '34000'], ['10', 'Amorparty', '2', '4000'], ['11', 'Plain_yogurt', '13', '45500']]
- while True:
- if " Americano" in list1[i]:
- del list1[0]
- if i < x:
- i = i + 1
- continue
- if i >= x:
- break
- print(list1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement