Intro Python Terms Flashcards

1
Q

Define String

A

The sequence of characters enclosed within single quotes, double quotes, or triple quotes.

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

Integer

A

A whole number (positive, negative, or zero) without any decimal component

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

Type Conversion

A

The process of changing the data type (type casting) of a value from one type to another.

  • Types of type conversion (implicit/explicit)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

String Type

A

Used to represent a sequence of characters.

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

Variable Type

A

Refers to the kind of data that a variable can hold. [Python is dynamically typed, meaning that the type of variable is determined of runtime based on the value assigned to it.]

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

Variable Value

A

The data stored in a variable. Variable is like a container that holds a piece of info and the value is the actual data stored in that container.

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

Increment a Variable Value

A

Increasing its value by a certain amount, (Usually 1)

  • Using the (+=) operator [most common]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Decrement a Variable Value

A

Decreasing its value by a specified amount (Usually 1)

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

Float (decimal)

A

Represents a floating point #, which is a way to represent real numbers with a decimal component.

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

Mod Operator

A

(%) returns the remainder of (modulo) dividing the left operand by the right operand

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

PNEMDmAS

A

Specifies the sequence in which operations are performed in an expression.

(parentheses, negation, exponents, multiplication, division, mod, addition, subtraction)

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

Compounded Math Operations

A

Usually refers to compound assignment ops. These ops combo on arithmetic operation, allowing you to perform calculations and update a variable in one step.

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

Pythons round function

A

Built in function that takes a number rounded to a specified number of a decimal place, or to the nearest integer if no decimal places are provided

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

Boolean values

A

Presents one of the possible states: true or false, (bool.) used in logical, OPS comparisons, and conditional statements to the control the flow of the program.

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

Conditionals

A

Statements that allow you to ctrl the flow of your program based on whether a certain condition is true or false. They help you make decisions in your code.

-if statement = executes a block of code only if the specified condition is true

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

Traceback

A

A record of where the interpreter ran into trouble when trying to execute your code.

20
Q

Syntax Highlighting

A

When the editor displays different parts of the program in different ways.

(I.e: Displaying of both coding/non-coding words in different colors)