Home » People & Blogs » Simple program in python that uses a data structure

Simple program in python that uses a data structure

Written By Y J CODE on Wednesday, Mar 22, 2023 | 01:58 PM

 
Program: Shopping List Data Structure: Array/List Description: The program allows the user to create a shopping list and add items to it. The shopping list is implemented as an array or list. This program uses a simple list data structure to store the shopping items entered by the user. The program prompts the user to enter items to the list and adds them to the list using the append() method. It also uses a loop to allow the user to add multiple items to the list. Finally, the program prints out the complete shopping list using a loop to iterate over the items in the list.