Make a shopping list | Python Program

Tips:

1. Use for loop .
2. Give condition for the loop.
3. Item name is consider as the elements in list.

 Code: 

list=["Bread","Milk","Tea","Noodles","Butter","Sugar"]

for item in list:

    print(item)

Output:

Comments

Popular posts from this blog

TOP 10 PROGRAMMING LANGAUAGES COMMING 2021 | ARTICLE

Write a C-program to swap two number:

Print Fibonacci Series using Recursion | C program :