Menu

1D Arrays - Code Quiz

1. What is printed?

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

2. What is printed?

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

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic