From the course: Programming Foundations: Beyond the Fundamentals
Challenge: Creating a for loop - Python Tutorial
From the course: Programming Foundations: Beyond the Fundamentals
Challenge: Creating a for loop
(pleasant electronic music) - It's time for a challenge. Ready to try your hand at iterating? In the start file for this video, I've created a list named fruits. It contains the names of six different fruits. Your task is to print the names of all the fruits in the terminal, each on a separate line. In addition, before the list, print a line that says "Our fruit selection." Your output should look like this. This challenge should take you about five minutes, and you'll want to use a for loop. When you're done, join me in the next video and I'll walk you through how I approached it. Have fun.