This programming language was not named after a snake, but rather a BBC Comedy TV show.
What is Python?
What is the output of the following code?
value = false
if value:
value = true
print(value)
false
This data type contains multiple characters, often formed into worlds.
What is a string?
What is the output of the following code?
print(float('1.5'))
1.5
This is the number of years that Kevin has been teaching for Microsoft TEALS.
What is 2?
This is something that a program works with, such as a letter or a number.
What is a value?
What is the output of this code?
foo = 10
bar = 20if foo > bar:
print('hello')
else:
print('world')
'world'
This data type can contain one of only two values: true or false.
What is a boolean?
What is the output of the following code?
print(int(1.5))
1
This is the college that Kevin received his Computer Science degree from, located in Chicago's Lincoln Park neighborhood.
What is DePaul University?
This is a special symbol that represents computations, such as addition and multiplication.
What is an operator?
What is the output of this code?
foo = 'hello world'
bar = 'hello world'
if foo == 'Hello, world!':
print('A')
elif foo == 'hello, world':
print('B')
elif foo == bar:
print('C')
else:
print('D')
'C'
What is the output of the following code?
foo = 1
bar = str(1)
print(type(bar))
<type 'string'>
What is the output of the following code?
print(float(1))
1.0
Kevin works for this software consulting company, headquartered in Chicago, IL.
What is Rightpoint Consulting, LLC?
This is a named object in Python that stores a value.
What is a variable?
What is the output of the following code?
bar = foo
if foo >= bar:print('A')
elif foo <= bar:
print('B')
elif foo == bar:
print('C')
else:print('D')
print('E')
'A'
'E'
What is the output of the following code?
print(type(4.5))
<type 'float'>
What is the output of the following code?
print(int('one point five'))
ValueError: invalid literal for int() with base 10: 'one point five'
This was the amount of snow that Chicago received this past winter.
What is 48.8"?
This is the process of finding, diagnosing, and removing bugs from a program.
What is debugging?
What is the output of the following code?
print(7+1*2 == 10)
false
What is the output of the following code?
print(type([1, 2, 3]))<type 'list'>
What is the output of the following code?
print(int(str(1.5)))
ValueError: invalid literal for int() with base 10: '1.5'
This is the breed of dog that Kevin has.
What is a Goldendoodle?