Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 438 Bytes

exercise.md

File metadata and controls

12 lines (8 loc) · 438 Bytes

Loops 102

Objectives

  1. Define the following list {'red', 'green', 'blue'}
    1. Iterate over the list and print each item on its own line
  2. Define a variable with a value of 1 and using a for loop add 3 3 to the variable's value, every loop. Make sure to define the loop in a way where it stops once the variable value is bigger than 100
    1. Print the final value

Solution

Click here to view the solution.