In: Computer Science
Consider the following code:
values = [2, 5, 8, 12, 15] values2 = {v % 3 for v in values}
What will be the length of values2?
Consider the following code:
values = ["moose", "giraffe", "antelope", "tortoise", "chinchilla"] values2 = [len(s) for s in values if "a" in s]
What will be the value of values2[1]?
Consider the following code:
numbers = [1, 2, 7, 9, 13] numbers2 = [n // 2 for n in numbers]
What will be the value of numbers2[2]?