What symbol is used to assign a value to a variable in Python?
what is equal sign (=)
What data type is the value stored in x?
x = 42
what is integer , or int
What symbol is used to start a comment in Python?
This logical operator returns True only if both conditions are True.
What is AND
This comparator checks whether two values are exactly equal.
What is == (double equal sign)
age = 16
What value is stored in age?
what is 16
What data type is the value stored in x?
x = 3.14
what is float
How do you print a string in python (and give an example)?
what is:
print "hello world"
This logical operator returns True if at least one condition is True.
What is OR
This comparator returns True when two values are different.
What is != (not equal to)
what is the value of total?
a = 5
b = 8
total = a + b
what is 13
What data type is the value stored in x?
x = "python"
what is a string
This python function is used to get information from the user.
Note: Don't forget the curly braces!
What is input()
This logical operator reverses a Boolean value.
What is NOT
The result of 10 % 3 is this number.
What is ONE (1)
Which variable name is invalid?
A) student_name
B) student1
C) 1student
D) studentName
what is C (1student)
What data type is the value stored in x?
x = False
This Python keyword is used to make a decision between different paths of code.
What is if (if statement)
The expression not (7 != 7) evaluates to this value.
What is True
This comparator means "greater than or equal to."
What is >=
What is the final value of x?
x = 10
x += 5
x *= 2
What is 30
What is the DATA TYPE of variable z?
x = 5
y = 3
z = str (x + y)
what is STRING
This keyword is used to create a function.
What is def()
The expression (8 == 8) or (5 > 12) evaluates to this value.
What is TRUE
The result of 2 ** 3 is this number.
What is EIGHT (8)