9: Object-Oriented Programming Flashcards
1
Q
tuple
A
2
Q
classes
A
3
Q
docs.python.org/3/tutorial/classes.html
A
4
Q
class
A
5
Q
objects
A
6
Q
attributes
A
7
Q
instance variables
A
8
Q
methods
A
9
Q
instance methods
A
10
Q
_ init _
A
11
Q
raise
A
12
Q
_ str _
A
13
Q
properties
A
14
Q
@property
A
15
Q
decorators
A
16
Q
int
A
17
Q
docs.python.org/3/library/functions.html#int
A
18
Q
class int(x, base=10)
A
19
Q
str
A
20
Q
docs.python.org/3/library/stdtypes.html#str
A
21
Q
class str(object=’ ‘)
A
22
Q
str.lower()
A
23
Q
str.strip([chars])
A
24
Q
list
A
25
docs.pyton.org/3/library/stdtypes.html#list
26
docs.python.org/3/tutorial/datastructures.html
27
class list ([iterable])
28
list.append(x)
29
dict
30
docs.python.org/3/library/stdtypes.html#dict
31
class methods
32
@classmethod
33
static methods
34
@staticmethod
35
inheritance
36
docs.python.org/3/library/exceptions.html
37
BaseException
+-- Keyboard Interrupt
+-- Exception
+-- ArithmeticError
| +-- ZeroDivisionError
+-- AssertionError
+-- AttributeError
+-- EOFError
+-- ImportError
| +-- ModuleNotFoundError
+-- LookupError
| +-- KeyError
+-- NameError
+-- SyntaxError
| +-- IndentationError
+-- ValueError
38
operator overloading
39
docs.python.org/3/reference/datamodel.html#special-method-names
40
object._add_(self, other)