Skip to content
Solution Array Challenge 1.2. Age Ratings
  • Pages
    • icon picker
      Solution
    • The Task
    • Python Starter Code
    • Code Clips

Solution

Solution

solution
print('\n\n') # display blank line (2)

# sets up array of year released
ageRating = ['PG', '15', '15', '12', '15', '15', '15', '15']


# prints out each element of array
for i in range(0, len(ageRating), 1) :
print(ageRating[i])
original
print('\n\n') # display blank line (2)

# sets up array of year released



# prints out each element of array
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.