Practice: Lists

Time to practice Lists and write a code on it

💡 This exercise will put everything into action you have learned so far about Lists.

💡 Write a code below

Task: Write a program to create a list of favourite icecream flavours and then print them in a line 1 by one using for loop



Type code below in textbox

Coding box below - Click in box and type text here! ⬇️ ⬇️

Output:

                    
Click to Reveal Solution
icecreams = ["Mango", "Vanilla", "Blueberry", "Chocolate Peanut butter"]
for icecream in icecreams:
  print(icecream)