Definitions
Booleans & Conditionals
Data Types
Casting
Random!
100

This programming language was not named after a snake, but rather a BBC Comedy TV show.

What is Python?

100

What is the output of the following code?

value = false

if value:

   value = true

print(value)

false

100

This data type contains multiple characters, often formed into worlds.

What is a string?

100

What is the output of the following code?

print(float('1.5'))

1.5

100

This is the number of years that Kevin has been teaching for Microsoft TEALS.

What is 2?

200

This is something that a program works with, such as a letter or a number.

What is a value?

200

What is the output of this code?


foo = 10

bar = 20


if foo > bar:

   print('hello')

else:

   print('world')

'world'

200

This data type can contain one of only two values: true or false.

What is a boolean?

200

What is the output of the following code?


print(int(1.5))

1

200

This is the college that Kevin received his Computer Science degree from, located in Chicago's Lincoln Park neighborhood.

What is DePaul University?

300

This is a special symbol that represents computations, such as addition and multiplication.

What is an operator?

300

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'

300

What is the output of the following code?


foo = 1

bar = str(1)

print(type(bar))

<type 'string'>

300

What is the output of the following code?

print(float(1))

1.0

300

Kevin works for this software consulting company, headquartered in Chicago, IL.

What is Rightpoint Consulting, LLC?

400

This is a named object in Python that stores a value.

What is a variable?

400

What is the output of the following code?


foo = 7

bar = foo

if foo >= bar:

   print('A')

elif foo <= bar:

   print('B')

elif foo == bar:

  print('C')

else:

   print('D')

print('E')


'A'

'E'

400

What is the output of the following code?

print(type(4.5))

<type 'float'>

400

What is the output of the following code?

print(int('one point five'))

ValueError: invalid literal for int() with base 10: 'one point five'


400

This was the amount of snow that Chicago received this past winter.

What is 48.8"?

500

This is the process of finding, diagnosing, and removing bugs from a program.

What is debugging?

500

What is the output of the following code?

print(7+1*2 == 10)

false

500

What is the output of the following code?

print(type([1, 2, 3]))

<type 'list'>

500

What is the output of the following code?

print(int(str(1.5)))

ValueError: invalid literal for int() with base 10: '1.5'

500

This is the breed of dog that Kevin has.


What is a Goldendoodle?