Gallery
Solution Array Challenge 1.4. Year Released
Share
Explore
Solution Array Challenge 1.4. Year Released

icon picker
Solution

Solution

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

# sets up array of year released
yearReleased = [2022, 2019, 2016, 2021, 2020, 2020, 2018, 2020]


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

# sets up array of year released



# prints out each element of array
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.