Do Now 4.02

  1. Copy and run the following code into the interpreter.

    for i in range(0, 10): 
     print(i)
    

    Write down what the range function does.


  2. Use the range and len functions to make a for loop that loops through a.

    a = ['apples', 'oranges', 'pears', 'grapes']