String
What does the "==" operator do
Checks for equality
True or False, an If-Else clause does not always need an Elif
True
What do booleans do
help make desicions and check for equality
What operator do I need to use to add elements to the end of a list?
Can I combine "Hello" and "World"?
Yes
What is the output:
(2+3>1) or ("Dog" == "Cat")
True
What does indentation do in If-Else clauses?
Separate clauses
True or False: I can take elements in and out of lists
True, with List manipulation operators/functions
What operator do I need to use to add elements to specific indexes
insert()
What operator is used to fuse Strings?
The "+" Operator
What is the output: 3+"Hello"
Output: Error
What do If-Else statements use to make decisions? (What are the parameters?)
Booleans
True or False: numbers given as strings can be used as calculations
False
What key does the reverse operator need to be used?
What is the output:
a=2
type(a)
Integer
What operator is ed to set variables?
The "=" operator
True or False: You always need a condition for Else
False
How do I convert the string "67" into an integer?
int("67")
What operator do I need to use to completely clear a list?
clear()
What category do Strings and Lists fall under?
Sequential Data Types
The answer is 0
Describe the format of an If-Else clause
if condition:
return output
Yes, it will just be []
a=["Cat", "Dog", "Fly", "Eagle"]
a.sort()
What will be at index 2?
Eagle