What file extension do python files have?
.py
Which variable type stores decimal numbers?
float
What is a collection of objects inside "[" and "]" called?
List
What is an attribute?
a variable declared inside a class
How do Python dictionaries retrieve values?
[key]
What does the function input() do, and what type of object does it return?
allows the user to type input. returns a string
What is the python function to get the length/size of a object?
What is a collection of objects inside "(" and ")" called?
Tuple
new_obj = MyClass()
new_obj is an _____ of the class MyClass
instance
What statement can you use to check if a dictionary contains a certain key?
if key in dict:
To use modules in another Python script, you must first ______ the module.
import
What are these symbols called?
+, ==, - , / , // , *, **, %
operators
What is indexing?
retrieving the element at a certain place in a sequence (list, tuple, string, etc.)
What is the difference between a 'function' and a 'method'?
a method is written for an instance of a certain class, a function can be loose outside of a class
Why can't you find the "third" or "fourth" element in a dictionary?
Entries are not in order
To comment a line in python, which symbol do you use?
#
Which type of error would arise here?
a = 5.888.4
SyntaxError
What is it called when you retrieve a contiguous subset of list elements, i.e. mylist[2:6]?
Slice
What error would happen here?
a = {'lunch' : 1, 'dinner': 9}
print(a['breakfast'])
KeyError
Explain immutability
It describes an object that cannot be changed once created
first Pokémon to be distributed in a Cherish Ball
Tropius
What kind of numbers are Ultra Beasts base stats?
Prime numbers
IN what game can phanpy learn water gun?
Pokemon Crystal version
What color is Jolteon's inner ear in the black and white version of pokemon?
purple
What is the only pokemon that can't learn normal type moves?
Weedle