
Unit 1 Python - Part 2
Quiz by Jennifer Whiteaker
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
What does the 'and' logical operator do?
What does the 'or' logical operator do?
Does the following code return True or False?
3 != 4
Which comparison operator is used to check if two values are not equal?
Which comparison operator is used to check if one value is greater than or equal to another value?
Which comparison operator is used to check if one value is less than another value?
What is the difference between the == and = operators in Python?
camelCase and snake_case are the two naming conventions we use in Python to name variables
A variable name can contain spaces
A variable name can contain a symbol
A variable name cannot start with a number
age and AGE are the same variable
What is the output of the following code?
num = 6
if num > 6
print ("Greater than 6")
else:
print ("Not greater than 6")
What is the output of the following code?
name = "Joe"
print name * 2
What is casting an input?
Which is the correct code to get a dollar amount input from the user?