variables
data types
python syntax
logical operators
math & comparators
100

What symbol is used to assign a value to a variable in Python?


what is equal sign (=)

100

What data type is the value stored in x?

x = 42



what is integer , or int

100

What symbol is used to start a comment in Python?

what is a hash tag (#)
100

This logical operator returns True only if both conditions are True.

What is AND

100

This comparator checks whether two values are exactly equal.

What is == (double equal sign)

200

age = 16

What value is stored in age?


what is 16

200

What data type is the value stored in x?

x = 3.14

what is float

200

How do you print a string in python (and give an example)?

what is:

print "hello world"

200

This logical operator returns True if at least one condition is True.

What is OR

200

This comparator returns True when two values are different.

What is != (not equal to)

300

what is the value of total?

a = 5

b = 8

total = a + b

what is 13

300

What data type is the value stored in x?

x = "python"

what is a string

300

This python function is used to get information from the user.

Note: Don't forget the curly braces!

What is input()

300

This logical operator reverses a Boolean value.

What is NOT

300

The result of 10 % 3 is this number.

What is ONE (1)

400

Which variable name is invalid?


A) student_name

B) student1

C) 1student

D) studentName

what is C (1student)

400

What data type is the value stored in x?

x = False

what is a boolean
400

This Python keyword is used to make a decision between different paths of code.

What is if (if statement)

400

The expression not (7 != 7) evaluates to this value.

What is True

400

This comparator means "greater than or equal to."

What is >=

500

What is the final value of x?


x = 10

x += 5

x *= 2


What is 30

500

What is the DATA TYPE of variable z?

x = 5

y = 3

z = str (x + y)


what is STRING

500

This keyword is used to create a function.

What is def()

500

The expression (8 == 8) or (5 > 12) evaluates to this value.

What is TRUE

500

The result of 2 ** 3 is this number.

What is EIGHT (8)

M
e
n
u