Python For Loop Exercises
Let’s check out some exercises that will help you understand Python’s For Loops better.
Exercise 8-a
Write a for loop so that every item in the list is printed.
Exercise 8-b
Write a for loop which print "Hello!, " plus each name in the list. i.e.: "Hello!, Sam"
Exercise 8-c
Write a for loop that iterates through a string and prints every letter.
Need More Exercises?
Check out Holy Python AI+ for amazing Python learning tools.
*Includes 14 more programming languages, inspirational tools and 1-on-1 consulting options.
*Includes 14 more programming languages, inspirational tools and 1-on-1 consulting options.
Umut Sagir
Finance & Data Science Professional,
Founder of HolyPython
Founder of HolyPython