Python
Colors = ["blue", "green", "yellow"]
Print(Colors[2])
What is the output of this python code?
What is yellow?
for x in range(2, 6):
print(x)
What is the output of this python code?
What is 2 3 4 5?
import math
x = math.ceil(1.4)
print(x)
What is 2?
class Student(Person):
def __init__(self, fname, lname):
super().__init__(fname, lname)
____.graduationyear = 2019
Fill in the underlined line above to add a property called graduation year to the Student class:
What is self.?
The name of the computer that beat chess champion Garry Kasparov
Deep Blue
def myfunc(n):
return lambda a : a * n
doubler = myfunc(2)
print(doubler(11))
What is 22?