Set 1 Flashcards

Understanding from Variables to Classes (37 cards)

1
Q

Interpreter

A

Tool to read and execute our Python code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Variable

A

A named container to store some data that we can reference later in our code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

String

A

Python data type that consists of characters, denoted by single or double quotation marks
“I am a string”
‘me too’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Integer

A

Python data type that consists of positive or negative whole numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Float

A

Python data type that consists of positive or negative decimal numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Boolean

A

Python data type that consists of True or False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Modulus

A

Python operator that returns the remainder from a division problem between two numbers.
5 % 3 = 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Concatenation

A

Combining two strings into one single string via the + operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

String Interpolation

A

F-String used to plug in python code directly into strings. Also called formatted string literals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

List

A

Python data type that stores any type of Python data in a particular order. First item inside resides at the position (index) of 0.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Mutable

A

Changeable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Immutable

A

Not-Changable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Tuple

A

Ordered collection that is immutable. Syntax is (1, 2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Conditional

A

A statement that resolves to either True or False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

For Loop

A

A loop that is used to iterate over a series of items

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

While Loop

A

A loop that runs until a statement resolves to True

17
Q

Dictionary

A

Python data type that stores values referenced by keys (Key-Value store). This collection is un-ordered

18
Q

Function

A

A block of code that can be referenced by a name, making a procedure re-usable.

19
Q

Scope

A

Block of code where variables that are assigned here can only reach. Global variables can be accessed in the global scope (everywhere), local variables can only be accessed in the local scope.

20
Q

Parameters

A

Variable names assigned to the data that is passed in to the function. How we can access the data given to a function when called.

21
Q

Arguments

A

The data that has been given to a function for a parameter to hold.

22
Q

Return

A

Terminating a function by sending data outside of the function. Every function has a default return of None if no other return has been called.

23
Q

Code Block

A

Region of scoped code that we can define variables and functions to be executed. Denoted by a tab (or more)

24
Q

Procedure

A

A step by step process that is used to perform some sort of task. Usually inside of a function

25
Class
Custom blueprint for a Python object. Creates objects of a defined type.
26
Instance
An individual occurrence of a class with unique values as properties of the occurrence
27
Self
Refers to this individual occurrence of an object
28
Attributes
Values that exist on an instance
29
Methods
Functions and operations that exist on an instance
30
Inheritance
The ability of one class to bring in attributes and methods from another class
31
Polymorphism
Commonly named methods across classes that each operate differently.
32
Method Overriding
A class that inherits from another class can override a class method from the parent by re-defining it in the new subclass.
33
Abstraction
Ignoring the integral features of a method, only focusing on what we give it and what it gives back to us.
34
Encapsulation
Packing data and functions into a component allowing us to restrict certain features inside of the component.
35
Exception
Any run time error in python that will stop the program if not handled.
36
Try-Except
A block of code that if an exception occurs, you can handle the exception without breaking your program.
37
Set
Unordered collection of unique items. Syntax is { 1, 2 , 3 }