Menu

1D Arrays - Code Quiz

1. What is printed?

colours = ['Blue', 'Pink', 'Green', 'Yellow', 'Red'] print(colours[2])
Pink
Yellow
Blue
Green

2. What is printed?

nums = [4, 8, 15, 16, 23, 42] print(nums[len(nums) - 1])
16
6
42
23

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic